don't hardcode image to nginx in scripts/activate-user.sh

This commit is contained in:
Michiel de Jong 2014-10-28 17:04:11 +00:00
parent c5a51e7fe8
commit 69ba357be0

View file

@ -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.