This commit is contained in:
2023-12-06 17:43:44 -06:00
parent 95b0b10086
commit dfe2c06cdc
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='5.1.12-12062023'
NM_BETA=beta
VERS='5.1.13-12062023'
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 '
CERT_DAEMON='/snap/bin/certbot'

View File

@@ -879,9 +879,9 @@ GUI(){
if [ "${2}" == "freespace" ]; then
STATUS freespace ${3}
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}"
if [ ${STATUSRUNS} -le 3 ]; then
if [ ${#STATUSRUNS[@]} -le 3 ]; then
STATUS_START=$(date +%Y-%m-%d-%H-%M-%S)
STATUSRUN_TMPFOLDER="${NM_TMPFOLDER}/status-${STATUS_START}"
mkdir ${STATUSRUN_TMPFOLDER}
@@ -923,7 +923,7 @@ GUI(){
done
touch ${NM_TMPFOLDER}/.statusclean
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}
exit 0
else