Update 'nodemgmt-scripts.sh'
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
action="$1"
|
action="$1"
|
||||||
VERS='1.01272019'
|
VERS='1.01272019'
|
||||||
CERT_DAEMON='/usr/bin/certbot'
|
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/nodemgmt/settings.conf
|
||||||
source /opt/idssys/defaults/colors.inc
|
source /opt/idssys/defaults/colors.inc
|
||||||
@@ -25,7 +25,7 @@ unset IFS
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
service)
|
service)
|
||||||
containsElement "${2}" "${NODE_SERVICES[@]}"
|
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]}"
|
echo -e "${idsCL[Red]}(${3}) is not an allowed service action.${idsCL[Default]}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -169,7 +169,11 @@ case "$1" in
|
|||||||
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Complete${idsCL[Default]}"
|
||||||
echo -en "${idsCL[Cyan]}Gogs Folder ${idsCL[Default]}"
|
echo -en "${idsCL[Cyan]}Gogs Folder ${idsCL[Default]}"
|
||||||
${NCMD} chown -R gogs:gogs /var/www/gogs
|
${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 -e "${idsCL[Green]}Complete${idsCL[Default]}"
|
||||||
echo ""
|
echo ""
|
||||||
nid=`expr $nid + 1`
|
nid=`expr $nid + 1`
|
||||||
|
|||||||
Reference in New Issue
Block a user