Update linupx-scripts.sh

This commit is contained in:
2023-04-27 12:58:53 -05:00
parent fff4fa97f3
commit 01fb0aca0a

View File

@@ -576,13 +576,15 @@ ADDVEEAMUSER(){
}
COPYCERTS_UPDATE(){
/usr/bin/ssh-copy-id le@keepalived.scity.us
/bin/sed -i 's/le@webserver.scity.us\:\/etc\/letsencrypt\/live/le@keepalived.scity.us\:\/opt\/nginx-proxy\/ssl/g' /opt/copycerts.sh
/opt/copycerts.sh
if [ -f /opt/copycerts.sh ]; then
/usr/bin/ssh-copy-id le@keepalived.scity.us
/bin/sed -i 's/le@keepalived.scity.us\:\/opt\/nginx-proxy\/ssl/le@keepalived.scity.us\:\/opt\/lb-data\/letsencrypt\/live/g' /opt/copycerts.sh
/opt/copycerts.sh
echo ""
echo -e "${Green}copycerts.sh has been updated${Color_Off}"
if [ ${action-x} ]; then exit 0; fi
echo ""
echo -e "${Green}copycerts.sh has been updated${Color_Off}"
fi
[ ${action-x} ] && exit 0
read -n 1 -s -p "Press any key to continue"
}
@@ -774,6 +776,7 @@ INSTALL_MENU() {
if [ ${action-x} ]; then
case $1 in
ccupdate) COPYCERTS_UPDATE;;
dnsupdate) DNSUPDATE;;
update) UPDATE3;;
up) UPDATE4;;