This commit is contained in:
2023-06-30 18:07:14 -05:00
parent 1a84ff25b8
commit 2af736529c
9 changed files with 67 additions and 67 deletions

View File

@@ -17,7 +17,7 @@ NEWCERT(){
fi
if [ "${NEW_CERT}" != "" ]; then
echo -e "${idsCL[LightGreen]}Requesting Certificate for '${idsCL[Yellow]}${NEW_CERT}${idsCL[LightGreen]}'...${idsCL[Default]}"
echo ""
echo
# echo -en "${idsCL[LightYellow]}Stopping other Webservers... ${idsCL[Default]}"
# for nip in "${WEB_HOSTS[@]}"; do
@@ -89,7 +89,7 @@ NEWCERT(){
# done
# echo -e "${idsCL[Green]}Completed${idsCL[Default]}"
echo ""
echo
if [ -z $action ] || [ "${action}" = "gui" ]; then
DIVIDER true
ENTER2CONTINUE
@@ -106,21 +106,21 @@ DEL-SSL(){
if [ -z ${1+x} ]; then
echo -e -n "${idsCL[LightCyan]}Delete what SSL site address: ${idsCL[Default]}"
read DEL_SSL
echo ""
echo
else
DEL_SSL=${1}
fi
if [ ! -z ${DEL_SSL+x} ] && [ "${DEL_SSL}" != "" ]; then
if [ -d /etc/letsencrypt/live/${DEL_SSL} ]; then
echo -e "${idsCL[LightRed]}Deleting the SSL certificates for '${idsCL[Red]}${DEL_SSL}${idsCL[LightRed]}'...${idsCL[Default]}"
echo ""
echo
echo -en "${idsCL[LightRed]}Removing Files and Folders... ${idsCL[Default]}"
rm -rf /etc/letsencrypt/archive/${DEL_SSL}
rm -rf /etc/letsencrypt/live/${DEL_SSL}
rm -f /etc/letsencrypt/renewal/${DEL_SSL}.conf
echo -e "${idsCL[Green]}OK${idsCL[Default]}"
echo ""
echo
else
@@ -160,7 +160,7 @@ CERTRENEW(){
echo
SERVICE nginx restart 2>&1 | tee -a ${FOLDER}/cert-renewal.lastrun
echo -e "${idsCL[LightGreen]}The certificates have been renewed.${idsCL[Default]}"
echo ""
echo
if [ -z $action ] || [ "${action}" = "gui" ]; then
DIVIDER true
ENTER2CONTINUE
@@ -266,7 +266,7 @@ LISTCERTS(){
DIVIDER true
ENTER2CONTINUE
fi
echo ""
echo
}
LISTCERTS_NPM(){
@@ -341,7 +341,7 @@ LISTCERTS_NPM(){
DIVIDER true
ENTER2CONTINUE
fi
echo ""
echo
}
COPYCERTS_NPM(){
ssldir='/opt/nginx-proxy/ssl'