From ebd9a747cef11fd33a4ee80b4ced977c36a7ce31 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Thu, 8 Feb 2024 23:31:06 +0100 Subject: [PATCH] use standard path --- scripts/change_url | 4 ---- scripts/install | 2 -- scripts/upgrade | 7 ------- 3 files changed, 13 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 6d7e713..d66e268 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -33,10 +33,6 @@ ynh_change_url_nginx_config ynh_backup_if_checksum_is_different --file="$install_dir/config/appsettings.json" key=$(ynh_app_setting_get --app="$app" --key=key) -domain="$new_domain" -ynh_app_setting_set --app="$app" --key=domain --value="$domain" -url_path=${new_path#/} -ynh_app_setting_set --app="$app" --key=url_path --value="$url_path" ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json" diff --git a/scripts/install b/scripts/install index e4a6eec..aa3f406 100755 --- a/scripts/install +++ b/scripts/install @@ -41,8 +41,6 @@ ynh_script_progression --message="Modifying a config file..." --weight=1 key=$(ynh_string_random --length=70) ynh_app_setting_set --app="$app" --key=key --value="$key" -url_path=${path#/} -ynh_app_setting_set --app="$app" --key=url_path --value="$url_path" ynh_add_config --template="appsettings.json.example" --destination="$install_dir/config/appsettings.json" diff --git a/scripts/upgrade b/scripts/upgrade index a6f0ba2..8ebfd51 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -53,13 +53,6 @@ then ynh_app_setting_set --app="$app" --key=key --value="$key" fi -url_path=$(ynh_app_setting_get --app="$app" --key=url_path) - -if [ -z "$url_path" ]; then - url_path=${path#/} - ynh_app_setting_set --app="$app" --key=url_path --value="$url_path" -fi - ynh_add_config --template="appsettings.json.example" --destination="$install_dir/config/appsettings.json" chmod 600 "$install_dir/config/appsettings.json"