Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-28 09:05:54 -06:00
parent a05aee14e2
commit ddb6d51182

View File

@@ -50,13 +50,11 @@ case "$1" in
;; ;;
newcert) newcert)
"$0" service haproxy stop
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}" echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${2}${idsCL[LightGreen]}'...${idsCL[Default]}"
# $DAEMON certonly --standalone -d $2 # $DAEMON certonly --standalone -d $2
$CERT_DAEMON certonly --webroot -w /var/www/html -d $2 $CERT_DAEMON certonly --webroot -w /var/www/html -d $2
# chown -R root:letsencrypt /etc/letsencrypt # chown -R root:letsencrypt /etc/letsencrypt
# chmod -R 6775 /etc/letsencrypt # chmod -R 6775 /etc/letsencrypt
"$0" service haproxy start
echo -e "${idsCL[LightGreen]}Waiting for Certificate Replication...${idsCL[Default]}" echo -e "${idsCL[LightGreen]}Waiting for Certificate Replication...${idsCL[Default]}"
sleep 20 sleep 20
"$0" service nginx reload "$0" service nginx reload