From 962f1c26fade497bce111f7276b15c52505d0e86 Mon Sep 17 00:00:00 2001 From: frju365 Date: Thu, 2 Mar 2017 22:21:06 +0100 Subject: [PATCH] Update install --- scripts/install | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index a7daa3a..2ff06c2 100644 --- a/scripts/install +++ b/scripts/install @@ -136,14 +136,12 @@ sudo rm $final_path/install.php # NGINX CONFIGURATION #================================================= nginxconf="../conf/nginx.conf" -if [ $path = "/" ]; then +if [ $path_url = "/" ]; then sed -i "s@YNH_WWW_ROOTPATH@@g" ../conf/nginx.conf - sed -i "s@YNH_WWW_ROOTAPP@/@g" ../conf/nginx.conf else - sed -i "s@YNH_WWW_ROOTPATH@$path@g" ../conf/nginx.conf - sed -i "s@YNH_WWW_ROOTAPP@$path$path@g" ../conf/nginx.conf + sed -i "s@YNH_WWW_ROOTPATH@$path_url@g" ../conf/nginx.conf fi -sed -i "s@YNH_WWW_PATH@$path@g" $nginxconf +sed -i "s@YNH_WWW_PATH@$path_url@g" $nginxconf sed -i "s@YNH_WWW_FINALPATH@$final_path@g" $nginxconf sed -i "s@YNH_WWW_APP@$app@g" $nginxconf sed -i "s@APP_URL@$domain$path_url@g" ../conf/nginx.conf