Update linupx-scripts.sh

This commit is contained in:
2022-10-15 23:41:16 -05:00
parent b4ebe36ded
commit 54240ee21a

View File

@@ -498,6 +498,17 @@ blacklist {
/etc/init.d/multipath-tools restart
}
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
echo ""
echo -e "${Green}copycerts.sh has been updated${Color_Off}"
if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue"
}
SCRIPT_MENU() {
if [ -f ${FOLDER}/lastrun ]; then
LASTRUND=$(stat -c %y ${FOLDER}/lastrun | cut -d ' ' -f1)
@@ -536,7 +547,7 @@ SCRIPT_MENU() {
echo " [5] Run Dist-Upgrade"
echo " [6] Run Python-Pip Upgrades"
echo " [7] Upgrade to Python v3"
echo " [8] Update DNS Servers"
echo " [8] Update copycerts.sh SSL server"
echo " [9] Fix multipath/vmware issue"
echo ""
if [ "$ATYPE" != 'yum' ]; then
@@ -571,7 +582,7 @@ SCRIPT_MENU() {
SCRIPT_MENU;;
7) PYTHON3UPGRADE
SCRIPT_MENU;;
8) DNSUPDATE
8) COPYCERTS_UPDATE
SCRIPT_MENU;;
9) MPVMFIX
echo ""