diff --git a/scripts/install b/scripts/install index b8d2765..2c0a215 100644 --- a/scripts/install +++ b/scripts/install @@ -163,8 +163,7 @@ ynh_app_setting_set $app final_path $final_path ynh_print_info "Configuring nginx web server..." ### `ynh_add_nginx_config` will use the file conf/nginx.conf -if [ $path = "/" ] -then +if [ $path = "/" ]; then ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf" else ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf" diff --git a/scripts/upgrade b/scripts/upgrade index cfe71cf..c79b405 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,8 +77,7 @@ path_url=$(ynh_normalize_url_path $path_url) ynh_print_info "Upgrading nginx web server configuration..." # Create a dedicated nginx config -if [ $path = "/" ] -then +if [ $path = "/" ]; then ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf" else ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf"