Update 'nodemgmt-scripts.sh'

This commit is contained in:
2019-01-29 08:08:29 -06:00
parent ec3e651c0d
commit 8183cc6808

View File

@@ -4,7 +4,7 @@
action="$1"
VERS='1.01272019'
CERT_DAEMON='/usr/bin/certbot'
NODE_SERVICES=mysql,nginx,gogs,haproxy,keepalived,maxscale
NODE_SERVICES=mysql,nginx,gitea,haproxy,keepalived,maxscale
source /opt/idssys/nodemgmt/settings.conf
source /opt/idssys/defaults/colors.inc
@@ -25,7 +25,7 @@ unset IFS
case "$1" in
service)
containsElement "${2}" "${NODE_SERVICES[@]}"
if [[ "start,stop,restart,ebale,disable" != *"${3}"* ]]; then
if [[ "start,stop,restart,enbale,disable" != *"${3}"* ]]; then
echo -e "${idsCL[Red]}(${3}) is not an allowed service action.${idsCL[Default]}"
exit 1
fi
@@ -169,7 +169,11 @@ case "$1" in
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
echo -en "${idsCL[Cyan]}Gogs Folder ${idsCL[Default]}"
${NCMD} chown -R gogs:gogs /var/www/gogs
${NCMD} chmod -R 7775 /var/www/gogs
${NCMD} chmod -R 750 /var/www/gogs
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
echo -en "${idsCL[Cyan]}Gitea Folder ${idsCL[Default]}"
${NCMD} chown -R git:git /var/lib/gitea
${NCMD} chmod -R 750 /var/lib/gitea
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
echo ""
nid=`expr $nid + 1`