update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERS='4.16.8-11252023'
|
VERS='4.16.9-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 '
|
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'
|
CERT_DAEMON='/snap/bin/certbot'
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ SINGLE_SERVER_SERVICE_CHECK(){
|
|||||||
servicestocheck=${1^^}_SINGLESRVR_SERVICES[@]
|
servicestocheck=${1^^}_SINGLESRVR_SERVICES[@]
|
||||||
dockerstocheck=${1^^}_SINGLESRVR_DOCKERS[@]
|
dockerstocheck=${1^^}_SINGLESRVR_DOCKERS[@]
|
||||||
hosts=${1^^}_HOSTS[@]
|
hosts=${1^^}_HOSTS[@]
|
||||||
|
|
||||||
|
[ "${2^^}" == "START" ] && rm -f ${NM_TMPFOLDER}/.singleserver
|
||||||
|
|
||||||
if [ "${!servicestocheck}" != "" ] || [ "${!dockerstocheck}" != "" ]; then
|
if [ "${!servicestocheck}" != "" ] || [ "${!dockerstocheck}" != "" ]; then
|
||||||
if [[ $(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1) == *${NM_SINGLESRVR_IP[${1^^}]}* ]]; then
|
if [[ $(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | awk '/inet/ {print $2}' | cut -d'/' -f1) == *${NM_SINGLESRVR_IP[${1^^}]}* ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user