update
This commit is contained in:
50
defaults.inc
50
defaults.inc
@@ -1,5 +1,5 @@
|
||||
|
||||
VERS='4.7.170-07032023'
|
||||
VERS='4.8.1-07032023'
|
||||
|
||||
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns '
|
||||
CERT_DAEMON='/snap/bin/certbot'
|
||||
@@ -31,22 +31,14 @@ if [ -f ${FOLDER}/defaults.local.inc ]; then
|
||||
declare -A NM_DOCKER_COMPOSE_LOC
|
||||
declare -A NM_REPL_CHECK_LOC
|
||||
declare -A NM_REPL_DESC
|
||||
|
||||
declare -A NM_SINGLESRVR_SERVICES
|
||||
declare -A NM_SINGLESRVR_DOCKERS
|
||||
declare -A NM_SINGLESRVR_IP
|
||||
|
||||
source ${FOLDER}/defaults.local.inc
|
||||
|
||||
IFS=,
|
||||
|
||||
LOCAL_SERVICES=(${LOCAL_SERVICES})
|
||||
|
||||
WEB_DOCKER=(${WEBDOCKER})
|
||||
LB_DOCKER=(${LBDOCKER})
|
||||
WM_DOCKER=(${WMDOCKER})
|
||||
PW_DOCKER=(${PWDOCKER})
|
||||
|
||||
WEB_SINGLESRVR_SERVICES=(${WEB_SINGLESRVRSERVICES})
|
||||
WEB_SINGLESRVR_DOCKERS=(${WEB_SINGLESRVRDOCKERS})
|
||||
|
||||
unset IFS
|
||||
|
||||
declare -a NODE_TYPES
|
||||
@@ -59,6 +51,9 @@ if [ -f ${FOLDER}/defaults.local.inc ]; then
|
||||
arr ${ntype}_SERVICES_CHECK
|
||||
arr ${ntype}_DOCKERS_CHECK
|
||||
arr ${ntype}_REPL_CHECK
|
||||
arr ${ntype}_SINGLESRVR_SERVICES
|
||||
arr ${ntype}_SINGLESRVR_DOCKERS
|
||||
arr ${ntype}_SINGLESRVR_IP
|
||||
|
||||
IFS=,; var=(${NM_HOSTS[${ntype}]}); unset IFS
|
||||
for value in "${var[@]}"; do
|
||||
@@ -89,12 +84,37 @@ if [ -f ${FOLDER}/defaults.local.inc ]; then
|
||||
arr_insert ${ntype}_REPL_CHECK $value
|
||||
done
|
||||
else
|
||||
declare "${ntype}_DOCKERS_CHECK"=""
|
||||
declare "${ntype}_REPL_CHECK"=""
|
||||
fi
|
||||
|
||||
if [ "${NM_SINGLESRVR_SERVICES[${ntype}]}" != "" ]; then
|
||||
IFS=,; var=(${NM_SINGLESRVR_SERVICES[${ntype}]}); unset IFS
|
||||
for value in "${var[@]}"; do
|
||||
arr_insert ${ntype}_SINGLESRVR_SERVICES $value
|
||||
done
|
||||
else
|
||||
declare "${ntype}_SINGLESRVR_SERVICES"=""
|
||||
fi
|
||||
|
||||
if [ "${NM_SINGLESRVR_DOCKERS[${ntype}]}" != "" ]; then
|
||||
IFS=,; var=(${NM_SINGLESRVR_DOCKERS[${ntype}]}); unset IFS
|
||||
for value in "${var[@]}"; do
|
||||
arr_insert ${ntype}_SINGLESRVR_DOCKERS $value
|
||||
done
|
||||
else
|
||||
declare "${ntype}_SINGLESRVR_DOCKERS"=""
|
||||
fi
|
||||
|
||||
if [ "${NM_SINGLESRVR_IP[${ntype}]}" != "" ]; then
|
||||
IFS=,; var=(${NM_SINGLESRVR_IP[${ntype}]}); unset IFS
|
||||
for value in "${var[@]}"; do
|
||||
arr_insert ${ntype}_SINGLESRVR_IP $value
|
||||
done
|
||||
else
|
||||
declare "${ntype}_SINGLESRVR_IP"=""
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
||||
fi
|
||||
|
||||
declare -A NM_SRVCOPTS
|
||||
|
||||
Reference in New Issue
Block a user