Update nodemgmt-scripts.sh
This commit is contained in:
@@ -377,9 +377,10 @@ NEWCERT(){
|
||||
fi
|
||||
done
|
||||
echo -e "${idsCL[Green]}Completed${idsCL[Default]}"
|
||||
echo
|
||||
|
||||
#$CERT_DAEMON certonly --webroot -w /var/www/html -d ${NEW_CERT}
|
||||
$CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT}
|
||||
$CERT_DAEMON certonly --webroot -w /var/www/html -d ${NEW_CERT}
|
||||
# $CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT}
|
||||
if [ -f /etc/letsencrypt/live/${MAIN_CERT}/cert.pem ]; then
|
||||
chown -R root:letsencrypt /etc/letsencrypt
|
||||
chmod -R 6775 /etc/letsencrypt
|
||||
@@ -423,6 +424,7 @@ NEWCERT(){
|
||||
echo -e "${idsCL[Red]}Certificate could not be created for '${idsCL[Yellow]}${NEW_CERT}${idsCL[Red]}'...${idsCL[Default]}"
|
||||
fi
|
||||
|
||||
echo
|
||||
echo -en "${idsCL[LightYellow]}Starting other Webservers... ${idsCL[Default]}"
|
||||
for nip in "${WEB_HOSTS[@]}"; do
|
||||
if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) != *"${nip}"* ]]; then
|
||||
|
||||
Reference in New Issue
Block a user