Update nodemgmt-scripts.sh
This commit is contained in:
@@ -73,13 +73,17 @@ NEWCERT(){
|
|||||||
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}"
|
||||||
echo ""
|
echo ""
|
||||||
do_with_root $CERT_DAEMON certonly --webroot -w /var/www/html -d ${NEW_CERT}
|
do_with_root $CERT_DAEMON certonly --webroot -w /var/www/html -d ${NEW_CERT}
|
||||||
do_with_root chown -R root:letsencrypt /etc/letsencrypt
|
if [ -f /etc/letsencrypt/live/${NEW_CERT}/cert.pem ]; then
|
||||||
do_with_root chmod -R 6775 /etc/letsencrypt
|
do_with_root chown -R root:letsencrypt /etc/letsencrypt
|
||||||
echo -e "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes...${idsCL[Default]}"
|
do_with_root chmod -R 6775 /etc/letsencrypt
|
||||||
echo ""
|
echo -e "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes...${idsCL[Default]}"
|
||||||
sleep 20
|
echo ""
|
||||||
SERVICE nginx reload
|
sleep 20
|
||||||
echo -e "${idsCL[Green]}Certificate has been created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Green]}'...${idsCL[Default]}"
|
SERVICE nginx reload
|
||||||
|
echo -e "${idsCL[Green]}Certificate has been successfully created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Green]}'...${idsCL[Default]}"
|
||||||
|
else
|
||||||
|
echo -e "${idsCL[LightRed]}Certificate could not be created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Green]}'...${idsCL[Default]}"
|
||||||
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
if [ -z $action ] || [ "${action}" = "gui" ]; then
|
||||||
DIVIDER true
|
DIVIDER true
|
||||||
|
|||||||
Reference in New Issue
Block a user