From 53d3e0a674a0314f408281fa6b0c5f16f6d5936c Mon Sep 17 00:00:00 2001 From: julienmalik Date: Thu, 12 Jan 2017 12:03:49 +0100 Subject: [PATCH] Fix obviously wrong code --- scripts/upgrade | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 108a737..c4effa9 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -45,10 +45,9 @@ sudo chmod +x /etc/init.d/$app sudo update-rc.d $app defaults # nginx -$nginx_conf_path=/etc/nginx/conf.d/$domain.d/$app.conf -if [ "$path" = "" ]; -then - sudo cp ../conf/nginx.conf-nosub $nginx_conf_path +nginx_conf_path=/etc/nginx/conf.d/$domain.d/$app.conf +if [ "$path" = "" ]; then + sudo cp ../conf/nginx.conf-nosub $nginx_conf_path else sudo cp ../conf/nginx.conf $nginx_conf_path # Modify Nginx configuration file and copy it to Nginx conf directory