Update linupx-scripts.sh
This commit is contained in:
@@ -576,13 +576,15 @@ ADDVEEAMUSER(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
COPYCERTS_UPDATE(){
|
COPYCERTS_UPDATE(){
|
||||||
|
if [ -f /opt/copycerts.sh ]; then
|
||||||
/usr/bin/ssh-copy-id le@keepalived.scity.us
|
/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
|
/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
|
/opt/copycerts.sh
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${Green}copycerts.sh has been updated${Color_Off}"
|
echo -e "${Green}copycerts.sh has been updated${Color_Off}"
|
||||||
if [ ${action-x} ]; then exit 0; fi
|
fi
|
||||||
|
[ ${action-x} ] && exit 0
|
||||||
read -n 1 -s -p "Press any key to continue"
|
read -n 1 -s -p "Press any key to continue"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -774,6 +776,7 @@ INSTALL_MENU() {
|
|||||||
|
|
||||||
if [ ${action-x} ]; then
|
if [ ${action-x} ]; then
|
||||||
case $1 in
|
case $1 in
|
||||||
|
ccupdate) COPYCERTS_UPDATE;;
|
||||||
dnsupdate) DNSUPDATE;;
|
dnsupdate) DNSUPDATE;;
|
||||||
update) UPDATE3;;
|
update) UPDATE3;;
|
||||||
up) UPDATE4;;
|
up) UPDATE4;;
|
||||||
|
|||||||
Reference in New Issue
Block a user