This commit is contained in:
2024-01-16 21:53:48 -06:00
parent e50a268ca2
commit 45f255cfca
2 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='5.1.76-01152024'
VERS='5.1.77-01162024'
NM_BETA=false
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns backup-offsitepfsense gui nightlyreview update log betacheck '

View File

@@ -384,7 +384,13 @@ SERVICE_MGMT(){
fi
fi
else
[ "${SERVICE['service']}" = "pdnsadmin" ] && srva="pdnsadmin.socket pdnsadmin.service" || srva=${SERVICE['service']}
if [ "${SERVICE['service']}" = "pdnsadmin" ]; then
srva="pdnsadmin.socket pdnsadmin.service"
elif [ "${SERVICE['service']}" = "syncthing" ] && [[ "${NM_SERVICES_CHECK[${NTYPE}]}" = *"syncthing@pdns"* ]]; then
srva="syncthing syncthing@pdns"
else
srva=${SERVICE['service']}
fi
if [ "${SERVICE['action']}" != "status" ]; then
${NCMD} systemctl ${SERVICE['action']} ${srva} >/dev/null 2>&1
else