From 8c5e4b037d852c2044f74618bc1d6fa66c7f227b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 6 Aug 2023 19:04:15 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- nodemgmt-scripts.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/defaults.inc b/defaults.inc index 3ca26527..76427027 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERS='4.10.50-08062023' +VERS='4.10.51-08062023' noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns ' CERT_DAEMON='/snap/bin/certbot' diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 5e407bfd..7cbd94dd 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -375,15 +375,15 @@ NODEUPDATE() { else echo -en " ~ ${idsCL[LightCyan]}Sync Shared Nodemgmt Defaults${idsCL[Default]} : " - # if ssh -tq root@${nip} [[ ! -f ${NM_FOLDER}/conf/defaults.local.inc ]] || - # ssh -tq root@${nip} [[ ! -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ]] || - # [ ${nmdiv} -ne $(ssh -tq root@${nip} ls -l --time-style=+%s ${NM_FOLDER}/conf/defaults.local.inc | cut -d ' ' -f 6) ] || - # [ ${nmsdc} -ne $(ssh -tq root@${nip} ls -l --time-style=+%s ${NM_FOLDER}/conf/ssl-domain-checks.conf | cut -d ' ' -f 6) ]; then + if ssh -tq root@${nip} [[ ! -f ${NM_FOLDER}/conf/defaults.local.inc ]] || + ssh -tq root@${nip} [[ ! -f ${NM_FOLDER}/conf/ssl-domain-checks.conf ]] || + [ ${nmdiv} -ne $(ssh -tq root@${nip} ls -l --time-style=+%s ${NM_FOLDER}/conf/defaults.local.inc | cut -d ' ' -f 6) ] || + [ ${nmsdc} -ne $(ssh -tq root@${nip} ls -l --time-style=+%s ${NM_FOLDER}/conf/ssl-domain-checks.conf | cut -d ' ' -f 6) ]; then ssh -tq root@${nmip} rsync -az ${NM_FOLDER}/conf/defaults.local.inc ${NM_FOLDER}/conf/ssl-domain-checks.conf root@${nip}:${NM_FOLDER}/conf/ >/dev/null 2>&1 echo -e "${idsCL[Green]}Files Synced${idsCL[Default]}" - # else - # echo -e "${idsCL[Green]}Files Already Synced${idsCL[Default]}" - # fi + else + echo -e "${idsCL[Green]}Files Already Synced${idsCL[Default]}" + fi fi