From f28adb37b8d5700f3fcb8a025bea4301cb8f4a88 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Wed, 8 Mar 2017 23:41:35 +0100 Subject: [PATCH] Bug lors de la copie de la conf Nginx sur l'upgrade --- scripts/upgrade | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0462912..d79a599 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -36,18 +36,11 @@ CHECK_MD5_CONFIG "connect.php" "$final_path/config/connect.php" # Created a back sed -i "s@__PATHTOCHANGE__@$app@g" ../conf/nginx.conf* sed -i "s@__FINALPATH__@$final_path/@g" ../conf/nginx.conf* +# If app is public, add url to SSOWat conf as skipped_uris if [ $is_public = "Yes" ]; then - sudo cp ../conf/nginx.conf-public /etc/nginx/conf.d/$domain.d/$app.conf -else - sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf -fi - -# If app is public, add url to SSOWat conf as skipped_uris -if [[ $is_public -eq 1 ]]; then - # See install script ynh_app_setting_set "$app" unprotected_uris "/" - sudo cp ../conf/nginx.conf-public /etc/nginx/conf.d/$domain.d/$app.conf + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf else sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf fi