update
This commit is contained in:
@@ -34,6 +34,8 @@ NM_SRVCOPTS['reload']='Reload'
|
||||
NM_SRVCOPTS['enable']='Enabl'
|
||||
NM_SRVCOPTS['disable']='Disabl'
|
||||
|
||||
NM_SRVCOPT=(start stop restart reload enable disable)
|
||||
|
||||
declare -A REPL_CHECKS
|
||||
REPL_CHECKS['nginx']='/etc/nginx'
|
||||
REPL_CHECKS['ssl']='/etc/letsencrypt'
|
||||
@@ -42,6 +44,8 @@ REPL_CHECKS['www']='/var/www'
|
||||
REPL_CHECKS['git']='/var/lib/gitea'
|
||||
REPL_CHECKS['gitssh']='/home/git'
|
||||
|
||||
REPL_CHECK=(nginx ssl php www git gitssh)
|
||||
|
||||
declare -A REPL_DESC
|
||||
REPL_DESC['nginx']='NGINX Settings'
|
||||
REPL_DESC['ssl']='SSL Certificates'
|
||||
@@ -50,7 +54,7 @@ REPL_DESC['www']='Webserver Files'
|
||||
REPL_DESC['git']='Gitea System'
|
||||
REPL_DESC['gitssh']='Gitea SSH Keys'
|
||||
|
||||
NM_SRVCOPT=(start stop restart reload enable disable)
|
||||
|
||||
|
||||
DISP_HEADER(){
|
||||
if [ "$1" = true ]; then
|
||||
|
||||
@@ -67,7 +67,7 @@ STATUS() {
|
||||
if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then
|
||||
echo -e "Node hostname: ${idsST[Bold]}${idsCL[LightCyan]}iDS-Node${nid} (${nip})${idsST[Reset]}${idsCL[Default]}"
|
||||
DIVIDER false green
|
||||
for rcheck in "${!REPL_CHECKS[@]}"
|
||||
for rcheck in "${REPL_CHECK[@]}"
|
||||
do
|
||||
rm -f ${FOLDER}/test.repl
|
||||
daterun=`date +%Y-%m-%d-%H-%M`
|
||||
|
||||
Reference in New Issue
Block a user