1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pihole_ynh.git synced 2024-09-03 20:05:58 +02:00

Fix SET UP CONF_REGEN HOOK

This commit is contained in:
yalh76 2022-09-18 14:18:30 +02:00
parent 315efea4f1
commit 45f4d7cda8
3 changed files with 6 additions and 3 deletions

View file

@ -191,7 +191,8 @@ ynh_replace_string --match_string=".*updatechecker.*" --replace_string="#&" --ta
(
cd scripts
ynh_add_config --template="../conf/dnsmasq_regenconf_hook" --destination="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
cp ../conf/dnsmasq_regenconf_hook /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
)
#=================================================

View file

@ -308,7 +308,8 @@ echo "$(ynh_app_upstream_version) $pihole_adminlte_version $pihole_flt_version"
#=================================================
ynh_script_progression --message="Setting up conf_regen hook..." --weight=1
ynh_add_config --template="../conf/dnsmasq_regenconf_hook" --destination="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
cp ../conf/dnsmasq_regenconf_hook /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
systemctl daemon-reload
ynh_exec_warn_less yunohost tools regen-conf dnsmasq

View file

@ -375,7 +375,8 @@ echo "$(ynh_app_upstream_version) $pihole_adminlte_version $pihole_flt_version"
#=================================================
ynh_script_progression --message="Updating conf_regen hook..." --weight=1
ynh_add_config --template="../conf/dnsmasq_regenconf_hook" --destination="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
cp ../conf/dnsmasq_regenconf_hook /usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app
ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
systemctl daemon-reload
ynh_exec_warn_less yunohost tools regen-conf dnsmasq