mirror of
https://github.com/YunoHost-Apps/garage_ynh.git
synced 2024-09-03 18:36:32 +02:00
Update regenconf_nginx_garage: hook should act on the $pending_dir, not the actual conf
This commit is contained in:
parent
a0be4c3e5d
commit
26161fbe29
1 changed files with 1 additions and 2 deletions
|
@ -8,5 +8,4 @@ app=__APP__
|
||||||
[[ "$action" == "pre" ]] || exit 0
|
[[ "$action" == "pre" ]] || exit 0
|
||||||
source /usr/share/yunohost/helpers
|
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_replace_special_string --match_string="server_name $domain" --replace_string="server_name $domain *.$domain" --target_file="$pending_dir/etc/nginx/conf.d/$domain.conf"
|
||||||
ynh_store_file_checksum --file="/etc/nginx/conf.d/$domain.conf"
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue