2014-10-07 07:42:50 +00:00
|
|
|
#!/bin/bash -eux
|
|
|
|
|
2014-10-27 14:53:52 +00:00
|
|
|
# mkdir -p /data/per-user/$1/nginx/data
|
|
|
|
# if [ -e /data/per-user/$1/nginx/data/www-content ]; then
|
|
|
|
# cd /data/per-user/$1/nginx/data/www-content; git pull --rebase
|
2014-10-27 13:21:35 +00:00
|
|
|
# else
|
|
|
|
# git clone $3 /data/per-user/$1/nginx/data/www-content
|
2014-10-27 14:53:52 +00:00
|
|
|
# fi
|
2014-10-17 14:34:28 +00:00
|
|
|
|
2014-10-07 07:42:50 +00:00
|
|
|
# Start service for new site (and create the user)
|
|
|
|
systemctl enable $2@$1.service
|
|
|
|
systemctl start $2@$1.service
|