update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
VERS='4.16.10-11292023'
|
||||
VERS='4.16.12-11292023'
|
||||
|
||||
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 '
|
||||
CERT_DAEMON='/snap/bin/certbot'
|
||||
|
||||
@@ -23,7 +23,6 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
||||
fi
|
||||
if [ "${gofor}" == "true" ]; then
|
||||
for stc in "${!servicestocheck}"; do
|
||||
echo "SERVICE: $stc"
|
||||
if [ "$(systemctl is-active ${stc}.service)" != "active" ]; then
|
||||
echo "$(date +%Y-%m-%d-%H-%M-%S) - ${NM_HOSTNAMES[${RUN_NODE_IP}]} - Starting ${stc} on ${RUN_NODE_IP}, stopping on the other Nodes ..." >> ${NM_LOGFILE}
|
||||
|
||||
@@ -42,7 +41,6 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
||||
fi
|
||||
done
|
||||
for docker in "${!dockerstocheck}"; do
|
||||
echo "docker: $docker"
|
||||
for nip in "${!hosts}"; do
|
||||
if [[ "${RUN_NODE_IP}" = *"${nip}"* ]]; then
|
||||
if [ "docker ps -a | grep ${docker})" ]; then
|
||||
|
||||
Reference in New Issue
Block a user