Update nodemgmt-scripts.sh
This commit is contained in:
@@ -62,7 +62,7 @@ STATUS() {
|
||||
fi
|
||||
}
|
||||
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 ""
|
||||
do_with_root $CERT_DAEMON certonly --webroot -w /var/www/html -d $2
|
||||
do_with_root chown -R root:letsencrypt /etc/letsencrypt
|
||||
@@ -94,7 +94,7 @@ NIGHTLYRENEW(){
|
||||
}
|
||||
|
||||
DELSITE(){
|
||||
DEL_SITE=${2}
|
||||
DEL_SITE=${1}
|
||||
echo -e "${idsCL[LightRed]}Deleting site '${idsCL[Red]}${DEL_SITE}${idsCL[LightRed]}'...${idsCL[Default]}"
|
||||
echo ""
|
||||
|
||||
@@ -323,8 +323,8 @@ STATUS-CHECK(){
|
||||
}
|
||||
|
||||
SET-PERMISSIONS(){
|
||||
if [ "${2}" != "" ]; then
|
||||
NEW_SITE=${2}
|
||||
if [ "${1}" != "" ]; then
|
||||
NEW_SITE=${1}
|
||||
echo -e "${idsCL[Yellow]}Setting new site folder permissions for (/var/www/${NEW_SITE})${idsCL[Default]}"
|
||||
fi
|
||||
nid=1
|
||||
@@ -456,7 +456,7 @@ if [ ${action-x} ]; then
|
||||
update) ;;
|
||||
status) STATUS ${2};;
|
||||
status-check) STATUS-CHECK ${2};;
|
||||
set-permissions) SET-PERMISSIONS;;
|
||||
set-permissions) SET-PERMISSIONS ${2};;
|
||||
service) SERVICE ${2} ${3};;
|
||||
gui) GUI;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user