From 26161fbe2946feaf7c08e59c76afcd635e3c2723 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com> Date: Sun, 10 Dec 2023 14:11:36 +0100 Subject: [PATCH] Update regenconf_nginx_garage: hook should act on the $pending_dir, not the actual conf --- conf/regenconf_nginx_garage | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/conf/regenconf_nginx_garage b/conf/regenconf_nginx_garage index a974512..e3a5a32 100644 --- a/conf/regenconf_nginx_garage +++ b/conf/regenconf_nginx_garage @@ -8,5 +8,4 @@ app=__APP__ [[ "$action" == "pre" ]] || exit 0 source /usr/share/yunohost/helpers -ynh_replace_special_string --match_string="server_name $domain" --replace_string="server_name $domain *.$domain" --target_file="/etc/nginx/conf.d/$domain.conf" -ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.conf" +ynh_replace_special_string --match_string="server_name $domain" --replace_string="server_name $domain *.$domain" --target_file="$pending_dir/etc/nginx/conf.d/$domain.conf"