Update nodemgmt-scripts.sh
This commit is contained in:
@@ -709,7 +709,7 @@ CHECK_DOCKER_SERVICES(){
|
|||||||
NEWCERT(){
|
NEWCERT(){
|
||||||
echo
|
echo
|
||||||
if [ -z ${1+x} ]; then
|
if [ -z ${1+x} ]; then
|
||||||
echo -e -n "${idsCL[LightCyan]}Create certificate for what address: ${idsCL[Default]}"
|
echo -e -n "${idsCL[LightCyan]}Create certificate for what name (comma seperated for mutiple) : ${idsCL[Default]}"
|
||||||
read NEW_CERT
|
read NEW_CERT
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
@@ -738,9 +738,11 @@ NEWCERT(){
|
|||||||
$CERT_DAEMON certonly --webroot -w /opt/lb-data/letsencrypt-acme-challenge -d ${NEW_CERT}
|
$CERT_DAEMON certonly --webroot -w /opt/lb-data/letsencrypt-acme-challenge -d ${NEW_CERT}
|
||||||
# $CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT}
|
# $CERT_DAEMON certonly --dry-run --webroot -w /var/www/html -d ${NEW_CERT}
|
||||||
|
|
||||||
|
chown -R root:le /opt/lb-data/letsencrypt
|
||||||
|
chmod -R 6775 /opt/lb-data/letsencrypt
|
||||||
|
|
||||||
if [ -d /opt/lb-data/letsencrypt/live/${MAIN_CERT} ]; then
|
if [ -d /opt/lb-data/letsencrypt/live/${MAIN_CERT} ]; then
|
||||||
chown -R root:le /opt/lb-data/letsencrypt/live/${MAIN_CERT}
|
|
||||||
chmod -R 6775 /opt/lb-data/letsencrypt/live/${MAIN_CERT}
|
|
||||||
touch /opt/lb-data/letsencrypt/live/${MAIN_CERT}/newcert
|
touch /opt/lb-data/letsencrypt/live/${MAIN_CERT}/newcert
|
||||||
if [ -f /opt/lb-data/nginx/sites-enabled/${MAIN_CERT}.conf ]; then
|
if [ -f /opt/lb-data/nginx/sites-enabled/${MAIN_CERT}.conf ]; then
|
||||||
rm -f ${FOLDER}/cert-request.lastrun
|
rm -f ${FOLDER}/cert-request.lastrun
|
||||||
|
|||||||
Reference in New Issue
Block a user