From 9c2ccb173155d82181ced1b13524151dde6740fd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Nov 2022 12:12:04 -0500 Subject: [PATCH] Update linupx-scripts.sh --- linupx-scripts.sh | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/linupx-scripts.sh b/linupx-scripts.sh index 783a4b2..e6546c3 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -408,22 +408,41 @@ IPERF_INSTALL() { 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 +IPERF_INSTALL() { + read -n 1 -p "Are you sure you wish to install iPerf (Y/n)?" choice case "$choice" in [Nn]) INSTALL_MENU;; * ) echo "" - $APTFUNC remove -y -qq speedtest speedtest-cli >/dev/null 2&>1 - pip uninstall speedtest speedtest-cli -y >/dev/null 2&>1 - rm /usr/local/bin/speedtest-cli >/dev/null 2&>1 - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8E61C2AB9A6D1557 - curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash - $APTFUNC install -y speedtest + cd /tmp + wget https://downloads.es.net/pub/iperf/iperf-3.10.1.tar.gz + tar -zxhf iperf-3.10.1.tar.gz + cd /tmp/iperf-3.10.1 + ./configure + make + make install + ldconfig echo "" - echo -e "${Green}SpeedTest has been Installed${Color_Off}" + echo -e "${Green}iPerf has been Installed${Color_Off}" + if [ ${action-x} ]; then exit 0; fi + 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