Update nodemgmt-scripts.sh

This commit is contained in:
2023-01-23 21:08:10 -06:00
parent a7dfc1d5ec
commit bae3e43226

View File

@@ -2058,14 +2058,17 @@ SINGLE_SERVER_SERVICE_CHECK(){
ssh root@${nip} /bin/systemctl stop ${stc}
fi
done
/bin/systemctl start gitea &
/bin/systemctl start ${stc} &
fi
done
fi
else
/bin/systemctl stop gitea &
/bin/systemctl stop pdnsadmin.service pdnsadmin.socket &
for stc in "${services_to_check[@]}"; do
[ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service"
/bin/systemctl stop ${stc} &
done
fi
if [ "$(systemctl is-active nginx)" != "active" ]; then