Merge branch 'master' of github.com:indiehosters/indiehosters

This commit is contained in:
pierreozoux 2014-10-28 17:40:27 +00:00
commit 2d9205d343

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.