This commit is contained in:
2019-02-07 10:12:41 -06:00
parent bdd128af68
commit 6918d1d6fe
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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`