From f8d47b1356639b431d9da290e097e1a925d4ca84 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Nov 2022 12:12:45 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 783a4b2..de03284 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -408,6 +408,25 @@ IPERF_INSTALL() { read -n 1 -s -p "Press any key to continue";; esac } +CHANGECOPYCERTS_INSTALL() { + read -n 1 -p "Are you sure you wish to change SSL servers (Y/n)?" choice + case "$choice" in + [Nn]) INSTALL_MENU;; + * ) + echo "" + + ssh-copy-id le@keepalived.scity.us + sed -i 's/scp le@webserver.scity.us:\/etc\/letsencrypt\/live/scp le@keepalived.scity.us:\/opt\/nginx-proxy\/ssl/' /opt/copycerts.sh + /opt/copycerts.sh + + echo "" + echo -e "${Green}copycerts.sh has been updated${Color_Off}" + echo "" + echo -e "${LightCyan}To run, use the command: speedtest${Color_Off}" + if [ ${action-x} ]; then exit 0; fi + read -n 1 -s -p "Press any key to continue";; + esac +} SPEEDTEST_INSTALL() { read -n 1 -p "Are you sure you wish to install SpeedTest (Y/n)?" choice case "$choice" in