Skip to content
Snippets Groups Projects
activate-user.sh 368 B
Newer Older
Michiel de Jong's avatar
Michiel de Jong committed
#!/bin/bash -eux

# 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
Pierre Ozoux's avatar
Pierre Ozoux committed
# else
#   git clone $3 /data/per-user/$1/nginx/data/www-content
# fi
Michiel de Jong's avatar
Michiel de Jong committed
# Start service for new site (and create the user)
systemctl enable $2@$1.service
systemctl start  $2@$1.service