don't hardcode image to nginx in scripts/activate-user.sh
This commit is contained in:
parent
c5a51e7fe8
commit
69ba357be0
1 changed files with 3 additions and 3 deletions
|
@ -4,13 +4,13 @@ if [ $# -ge 2 ]; then
|
|||
DOMAIN=$1
|
||||
IMAGE=$2
|
||||
else
|
||||
echo "Usage: sh /data/indiehosters/scripts/activate-user domain image [gitrepo]"
|
||||
echo "Usage: sh /data/indiehosters/scripts/activate-user.sh domain image [gitrepo]"
|
||||
exit 1
|
||||
fi
|
||||
mkdir -p /data/per-user/$DOMAIN/nginx/data
|
||||
mkdir -p /data/per-user/$DOMAIN/$IMAGE/data
|
||||
if [ $# -ge 3 ]; then
|
||||
GITREPO=$3
|
||||
echo $GITREPO > /data/per-user/$DOMAIN/nginx/data/git-url.txt
|
||||
echo $GITREPO > /data/per-user/$DOMAIN/$IMAGE/data/git-url.txt
|
||||
fi
|
||||
|
||||
# Start service for new site (and create the user). This will also enable the git puller.
|
||||
|
|
Loading…
Reference in a new issue