From f54dbade120a8f70fdb6e1be3ea1e1fe064cfbbe Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Feb 2019 22:20:13 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index e2914fa6..77b62ec6 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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;; *)