change default vhost folder to app/web

This commit is contained in:
2019-10-13 12:47:45 +02:00
parent 3f0d9fb4ac
commit 82ef2eb885
6 changed files with 8 additions and 7 deletions
+1
View File
@@ -40,6 +40,7 @@ adduser "$user"
sed -i "s/$user:\/bin\/ash/$user:\/bin\/bash/g" /etc/passwd
# TODO limiting su to the admin group
yn="reset"
while [ "$yn" != "y" ] && [ "$yn" != "n" ]
do
echo -n "Should we allow $user to su? [y|n] "
+3 -3
View File
@@ -87,11 +87,11 @@ fi
cp "$_assets/vhosts/$_conffile" /etc/nginx/conf.d/"$_domain".conf
sed -i -r "s/DOMAIN\.LTD/$_domain/g" /etc/nginx/conf.d/"$_domain".conf
mkdir -p /var/www/"$_domain"/app/public_html
mkdir -p /var/www/"$_domain"/app/web
mkdir /var/www/"$_domain"/log
cp "$_assets/vhosts/index.php" /var/www/"$_domain"/app/public_html/
sed -i -r "s/DOMAIN\.LTD/$_domain/g" /var/www/"$_domain"/app/public_html/index.php
cp "$_assets/vhosts/index.php" /var/www/"$_domain"/app/web/
sed -i -r "s/DOMAIN\.LTD/$_domain/g" /var/www/"$_domain"/app/web/index.php
#set proper right to user will handle the app
chown -R www:www /var/www/"$_domain"/