Skip to content

Commit a057122

Browse files
committed
changes
1 parent 5776a86 commit a057122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

create_site.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ else
2727
fi
2828

2929
USERNAME='www-data'
30+
HOME_DIR=$DOMAIN
3031

3132
# Create a new user!
3233
#echo "Please specify the username for this site?"
@@ -40,7 +41,7 @@ USERNAME='www-data'
4041
CONFIG=$NGINX_ALL_VHOSTS/$DOMAIN.conf
4142
sudo cp $CURRENT_DIR/virtual_host.template $CONFIG
4243
sudo $SED -i "s/DOMAIN/$DOMAIN/g" $CONFIG
43-
sudo $SED -i "s/ROOT/$WEB_DIR/$HOME_DIR\/public_html/g" $CONFIG
44+
sudo $SED -i "s#ROOT#$WEB_DIR/$HOME_DIR\/public_html#g" $CONFIG
4445

4546
#sudo usermod -aG $USERNAME nginx
4647
#sudo chmod g+rxs $WEB_DIR/$USERNAME

0 commit comments

Comments
 (0)