Update nodemgmt-scripts.sh

This commit is contained in:
2019-02-03 22:20:13 -06:00
parent e9a918f103
commit f54dbade12

View File

@@ -62,7 +62,7 @@ STATUS() {
fi fi
} }
NEWCERT(){ NEWCERT(){
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}" echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${1}${idsCL[LightGreen]}'...${idsCL[Default]}"
echo "" echo ""
do_with_root $CERT_DAEMON certonly --webroot -w /var/www/html -d $2 do_with_root $CERT_DAEMON certonly --webroot -w /var/www/html -d $2
do_with_root chown -R root:letsencrypt /etc/letsencrypt do_with_root chown -R root:letsencrypt /etc/letsencrypt
@@ -94,7 +94,7 @@ NIGHTLYRENEW(){
} }
DELSITE(){ DELSITE(){
DEL_SITE=${2} DEL_SITE=${1}
echo -e "${idsCL[LightRed]}Deleting site '${idsCL[Red]}${DEL_SITE}${idsCL[LightRed]}'...${idsCL[Default]}" echo -e "${idsCL[LightRed]}Deleting site '${idsCL[Red]}${DEL_SITE}${idsCL[LightRed]}'...${idsCL[Default]}"
echo "" echo ""
@@ -323,8 +323,8 @@ STATUS-CHECK(){
} }
SET-PERMISSIONS(){ SET-PERMISSIONS(){
if [ "${2}" != "" ]; then if [ "${1}" != "" ]; then
NEW_SITE=${2} NEW_SITE=${1}
echo -e "${idsCL[Yellow]}Setting new site folder permissions for (/var/www/${NEW_SITE})${idsCL[Default]}" echo -e "${idsCL[Yellow]}Setting new site folder permissions for (/var/www/${NEW_SITE})${idsCL[Default]}"
fi fi
nid=1 nid=1
@@ -456,7 +456,7 @@ if [ ${action-x} ]; then
update) ;; update) ;;
status) STATUS ${2};; status) STATUS ${2};;
status-check) STATUS-CHECK ${2};; status-check) STATUS-CHECK ${2};;
set-permissions) SET-PERMISSIONS;; set-permissions) SET-PERMISSIONS ${2};;
service) SERVICE ${2} ${3};; service) SERVICE ${2} ${3};;
gui) GUI;; gui) GUI;;
*) *)