From 83058bccf73b70dd3209dbe2292d6ba3deb411e7 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 18 Dec 2021 19:16:38 +0100 Subject: [PATCH] Data path is also used in change_url --- scripts/change_url | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 35c55c5..2b8fca6 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -28,6 +28,7 @@ ynh_script_progression --message="Loading installation settings..." --time --wei # Needed for helper "ynh_add_nginx_config" final_path=$(ynh_app_setting_get --app=$app --key=final_path) +data_path=$(ynh_app_setting_get --app=$app --key=data_path) port=$(ynh_app_setting_get --app=$app --key=port) api_key=$(ynh_app_setting_get --app=$app --key=api_key) @@ -112,11 +113,11 @@ fi # UPDATE CONFIGURATION FILE #================================================= -ynh_exec_warn_less 'ynh_add_config --template="../conf/config.xml" --destination="$final_path/.data/config.xml"' +ynh_exec_warn_less 'ynh_add_config --template="../conf/config.xml" --destination="$data_path/config.xml"' -chmod 750 "$final_path/.data/config.xml" -chmod o-rwx "$final_path/.data/config.xml" -chown $app "$final_path/.data/config.xml" +chmod 750 "$data_path/config.xml" +chmod o-rwx "$data_path/config.xml" +chown $app "$data_path/config.xml" #================================================= # GENERIC FINALISATION