This commit is contained in:
2023-12-03 21:06:09 -06:00
parent c3f87211f1
commit ea04fc996a
3 changed files with 10 additions and 2 deletions

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env bash
VERS='4.16.30-12032023'
VERS='4.16.31-12032023'
NM_BETA=true
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 betacheck '
CERT_DAEMON='/snap/bin/certbot'
declare -i errtime

View File

@@ -774,6 +774,11 @@ SETUPSSH(){
done
}
BETACHECK(){
source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/NodeMgmt/raw/branch/master/defaults.inc)"
[ "${NM_BETA}" == "true" ] && echo true || echo false
}
GUI(){
DISP_HEADER true false
@@ -860,6 +865,7 @@ GUI(){
fi
;;
setupssh) SETUPSSH ${2} ${3} ${4} ${5} ${6};;
betacheck) BETACHECK;;
update-dyndns) UPDATE_DYNDNS ${2} ${3} ${4} ${5} ${6};;
backup) BACKUP;;
downlist)

1
run.sh
View File

@@ -33,6 +33,7 @@ if [ "${1}" == "update" ]; then
cd ${NM_FOLDER}
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
# if [ "`git log --pretty=%H ...refs/heads/dev^ | head -n 1`" != "`git ls-remote origin -h refs/heads/dev |cut -f1`" ]; then
if [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[LightCyan]}Updating NodeMgmt...${idsCL[Default]}"