From 12e91782a9b7d3128a352fc26d96e5da132f727f Mon Sep 17 00:00:00 2001 From: frju365 Date: Fri, 3 Mar 2017 11:36:20 +0100 Subject: [PATCH] Update install --- scripts/install | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index 679d182..02b0ef4 100644 --- a/scripts/install +++ b/scripts/install @@ -136,17 +136,8 @@ sudo rm $final_path/install.php # NGINX CONFIGURATION #================================================= nginxconf="../conf/nginx.conf" -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_url@g" ../conf/nginx.conf - sed -i "s@YNH_WWW_ROOTAPP@$path_url@g" ../conf/nginx.conf -fi -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 +sed -i "s@YNH_WWW_PATH@$path_url@g" $nginx_conf +sed -i "s@YNH_WWW_ALIAS@$$final_path@g" $nginx_conf sudo cp $nginxconf /etc/nginx/conf.d/$domain.d/$app.conf sudo chown root: $nginxconf sudo chmod 644 $nginxconf