From 55f5402bceea5083b1aed81aba4a71628f9cb70f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 2 Dec 2021 03:05:56 +0100 Subject: [PATCH] change_url : fix unecessary(?) ynh_exec_warn_less + probably unbound var error --- scripts/change_url | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index e9358bb..c550f55 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -100,6 +100,7 @@ then mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf # Store file checksum for the new config file location ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" + domain="$new_domain" fi #================================================= @@ -108,7 +109,7 @@ fi # UPDATE CONFIGURATION FILE #================================================= -ynh_exec_warn_less 'ynh_add_config --template="../conf/config.xml" --destination="$final_path/.data/config.xml"' +ynh_add_config --template="../conf/config.xml" --destination="$final_path/.data/config.xml" chmod 750 "$final_path/.data/config.xml" chmod o-rwx "$final_path/.data/config.xml"