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