update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERS='4.10.58-08122023'
|
VERS='4.10.60-08122023'
|
||||||
|
|
||||||
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns '
|
noheader=' service status-check nightlyrephp7.3-fpm,new backup report check checkcerts gitea update-nodes copynpmcerts singleservercheck update-dyndns '
|
||||||
CERT_DAEMON='/snap/bin/certbot'
|
CERT_DAEMON='/snap/bin/certbot'
|
||||||
|
|||||||
@@ -28,10 +28,7 @@ NEWCERT(){
|
|||||||
|
|
||||||
touch ${NM_CERTPATH}/live/${MAIN_CERT}/newcert
|
touch ${NM_CERTPATH}/live/${MAIN_CERT}/newcert
|
||||||
if [ -f ${NM_NGINXPATH}/sites-enabled/${MAIN_CERT}.conf ]; then
|
if [ -f ${NM_NGINXPATH}/sites-enabled/${MAIN_CERT}.conf ]; then
|
||||||
rm -f ${NM_LOGFOLDER}/cert-request.lastrun
|
echo -e "$(date +%Y-%m-%d-%H-%M-%S) - ${NEW_CERT}" >> ${NM_LOGFOLDER}/cert.requests
|
||||||
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
|
||||||
echo -e "${NEW_CERT}\n${daterun}" > ${NM_LOGFOLDER}/cert-request.lastrun
|
|
||||||
yes | cp -rfH ${NM_LOGFOLDER}/cert-request.lastrun ${NM_CERTPATH}/cert-request.lastrun
|
|
||||||
DIVIDER true
|
DIVIDER true
|
||||||
if [ "${2}" != "newsite" ] && [ "${NM_HOSTS['LB']}" != "" ]; then
|
if [ "${2}" != "newsite" ] && [ "${NM_HOSTS['LB']}" != "" ]; then
|
||||||
echo -e -n "${idsCL[LightCyan]}Reload NGINX on LB Nodes (Y/n): ${idsCL[Default]}"
|
echo -e -n "${idsCL[LightCyan]}Reload NGINX on LB Nodes (Y/n): ${idsCL[Default]}"
|
||||||
@@ -140,9 +137,8 @@ CERTRENEW(){
|
|||||||
CONCAT_SSL
|
CONCAT_SSL
|
||||||
chown -R root:le ${NM_CERTPATH} >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
chown -R root:le ${NM_CERTPATH} >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
chmod -R 6775 ${NM_CERTPATH} >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
chmod -R 6775 ${NM_CERTPATH} >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
yes | cp -rfH ${NM_LOGFOLDER}/cert-renewal.lastrun ${NM_CERTPATH}/cert-renewal.lastrun
|
|
||||||
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
daterun=`date +%Y-%m-%d-%H-%M-%S`
|
||||||
echo -e "${daterun}" >> ${NM_CERTPATH}/cert-renewal.lastrun
|
echo -e "${daterun}" >> ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
DIVIDER true
|
DIVIDER true
|
||||||
# echo -en "${idsCL[LightCyan]}Starting Webserver-Node2 Back up...${idsCL[Default]}"
|
# echo -en "${idsCL[LightCyan]}Starting Webserver-Node2 Back up...${idsCL[Default]}"
|
||||||
# ssh root@webserver-node2.scity.us service nginx start
|
# ssh root@webserver-node2.scity.us service nginx start
|
||||||
|
|||||||
@@ -777,7 +777,6 @@ GUI(){
|
|||||||
mv -f ${NM_LOGFOLDER}/cert-renewal.lastrun ${NM_LOGFOLDER}/cert-renewal1.lastrun >/dev/null 2>&1
|
mv -f ${NM_LOGFOLDER}/cert-renewal.lastrun ${NM_LOGFOLDER}/cert-renewal1.lastrun >/dev/null 2>&1
|
||||||
NIGHTLYRENEW > ${NM_LOGFOLDER}/cert-renewal.lastrun
|
NIGHTLYRENEW > ${NM_LOGFOLDER}/cert-renewal.lastrun
|
||||||
echo -e "\n$(date +%Y-%m-%d-%H-%M-%S)" >> ${NM_CERTPATH}/cert-renewal.lastrun
|
echo -e "\n$(date +%Y-%m-%d-%H-%M-%S)" >> ${NM_CERTPATH}/cert-renewal.lastrun
|
||||||
yes | cp -rfH ${NM_LOGFOLDER}/cert-renewal.lastrun ${NM_CERTPATH}/cert-renewal.lastrun
|
|
||||||
;;
|
;;
|
||||||
delsite) DELSITE ${2} ${3} ${4} ${5};;
|
delsite) DELSITE ${2} ${3} ${4} ${5};;
|
||||||
delsites) DELSITES;;
|
delsites) DELSITES;;
|
||||||
|
|||||||
Reference in New Issue
Block a user