mirror of
https://github.com/YunoHost-Apps/pihole_ynh.git
synced 2024-09-03 20:05:58 +02:00
Fix restore
This commit is contained in:
parent
78075ed93a
commit
77a6767c4f
1 changed files with 2 additions and 1 deletions
|
@ -133,7 +133,7 @@ test -e "${YNH_APP_BACKUP_DIR}/etc/dnsmasq.d/03-pihole-wildcard.conf" && ynh_res
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
|
ynh_restore_file --origin_path="/usr/share/yunohost/hooks/conf_regen/50-dnsmasq_$app"
|
||||||
|
|
||||||
systemctl daemon-reload
|
|
||||||
ynh_exec_warn_less yunohost tools regen-conf dnsmasq
|
ynh_exec_warn_less yunohost tools regen-conf dnsmasq
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -152,6 +152,7 @@ ynh_restore_file --origin_path="/etc/cron.d/pihole"
|
||||||
ynh_restore_file --origin_path="/etc/sudoers.d/pihole"
|
ynh_restore_file --origin_path="/etc/sudoers.d/pihole"
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/init.d/pihole-FTL"
|
ynh_restore_file --origin_path="/etc/init.d/pihole-FTL"
|
||||||
|
systemctl daemon-reload
|
||||||
# install -T -m 0755 "${PI_HOLE_LOCAL_REPO}/advanced/Templates/pihole-FTL.service" "/etc/init.d/pihole-FTL"
|
# install -T -m 0755 "${PI_HOLE_LOCAL_REPO}/advanced/Templates/pihole-FTL.service" "/etc/init.d/pihole-FTL"
|
||||||
yunohost service add pihole-FTL --description="PiHole backend service" --log="/var/log/pihole-FTL.log" --needs_exposed_ports 53 67
|
yunohost service add pihole-FTL --description="PiHole backend service" --log="/var/log/pihole-FTL.log" --needs_exposed_ports 53 67
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue