update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERS='5.1.12-12062023'
|
VERS='5.1.13-12062023'
|
||||||
NM_BETA=beta
|
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 '
|
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 '
|
||||||
CERT_DAEMON='/snap/bin/certbot'
|
CERT_DAEMON='/snap/bin/certbot'
|
||||||
|
|||||||
@@ -879,9 +879,9 @@ GUI(){
|
|||||||
if [ "${2}" == "freespace" ]; then
|
if [ "${2}" == "freespace" ]; then
|
||||||
STATUS freespace ${3}
|
STATUS freespace ${3}
|
||||||
else
|
else
|
||||||
STATUSRUNS=($(find "${NM_TMPFOLDER}/"* -maxdepth 1 -type d -iname "status-*" 2>/dev/null))
|
STATUSRUNS=($(find ${NM_TMPFOLDER}/* -maxdepth 1 -type d -iname "status-*" 2>/dev/null))
|
||||||
echo "HERE: ${STATUSRUNS}"
|
echo "HERE: ${STATUSRUNS}"
|
||||||
if [ ${STATUSRUNS} -le 3 ]; then
|
if [ ${#STATUSRUNS[@]} -le 3 ]; then
|
||||||
STATUS_START=$(date +%Y-%m-%d-%H-%M-%S)
|
STATUS_START=$(date +%Y-%m-%d-%H-%M-%S)
|
||||||
STATUSRUN_TMPFOLDER="${NM_TMPFOLDER}/status-${STATUS_START}"
|
STATUSRUN_TMPFOLDER="${NM_TMPFOLDER}/status-${STATUS_START}"
|
||||||
mkdir ${STATUSRUN_TMPFOLDER}
|
mkdir ${STATUSRUN_TMPFOLDER}
|
||||||
@@ -923,7 +923,7 @@ GUI(){
|
|||||||
done
|
done
|
||||||
touch ${NM_TMPFOLDER}/.statusclean
|
touch ${NM_TMPFOLDER}/.statusclean
|
||||||
STATUSRUNS=($(find ${NM_TMPFOLDER}/* -maxdepth 1 -type d -iname "status-*" 2>/dev/null))
|
STATUSRUNS=($(find ${NM_TMPFOLDER}/* -maxdepth 1 -type d -iname "status-*" 2>/dev/null))
|
||||||
if [ ${STATUSRUNS} -le 3 ]; then
|
if [ ${#STATUSRUNS[@]} -le 3 ]; then
|
||||||
${NM_SCRIPT} status ${2} ${3} ${4}
|
${NM_SCRIPT} status ${2} ${3} ${4}
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user