|
|
@@ -119,7 +119,7 @@ ynh_install_app_dependencies $app_depencencies
|
|
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
|
|
#=================================================
|
|
|
|
|
|
-yunohost service add pihole-FTL --description "PiHole backend service" --log "/var/log/pihole-FTL.log"
|
|
|
+yunohost service add pihole-FTL --description="PiHole backend service" --log="/var/log/pihole-FTL.log" --needs_exposed_ports=$port
|
|
|
|
|
|
#=================================================
|
|
|
# RESTORE THE CRON FILE
|
|
|
@@ -162,7 +162,7 @@ then
|
|
|
ynh_systemd_action --action=stop --service_name=dnsmasq
|
|
|
|
|
|
# Disable the real dnsmasq service
|
|
|
- ynh_exec_warn_less systemctl disable dnsmasq
|
|
|
+ ynh_exec_warn_less systemctl disable dnsmasq --quiet
|
|
|
|
|
|
# And move the files that make the service available in systemd to really disable it
|
|
|
mv /lib/systemd/system/dnsmasq.service /lib/systemd/system/.dnsmasq.service.backup_by_pihole
|
|
|
@@ -178,7 +178,7 @@ then
|
|
|
pihole_local_repo="/etc/.pihole"
|
|
|
cp -a $pihole_local_repo/advanced/Templates/pihole-FTL.service /etc/init.d/pihole-FTL
|
|
|
chmod +x /etc/init.d/pihole-FTL
|
|
|
- ynh_exec_warn_less systemctl enable pihole-FTL
|
|
|
+ ynh_exec_warn_less systemctl enable pihole-FTL --quiet
|
|
|
|
|
|
# Replace the service dnsmasq by pihole-FTL
|
|
|
# That way, YunoHost can continue to use dnsmasq by actually using pihole-FTL
|
|
|
@@ -257,7 +257,7 @@ ynh_store_file_checksum --file="$setupVars"
|
|
|
#=================================================
|
|
|
ynh_script_progression --message="Restarting PiHole-FTL..." --weight=2
|
|
|
|
|
|
-ynh_exec_warn_less systemctl enable pihole-FTL
|
|
|
+ynh_exec_warn_less systemctl enable pihole-FTL --quiet
|
|
|
ynh_systemd_action --action=restart --service_name=pihole-FTL
|
|
|
|
|
|
#=================================================
|