Update linupx-scripts.sh
This commit is contained in:
@@ -408,41 +408,22 @@ IPERF_INSTALL() {
|
|||||||
read -n 1 -s -p "Press any key to continue";;
|
read -n 1 -s -p "Press any key to continue";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
IPERF_INSTALL() {
|
SPEEDTEST_INSTALL() {
|
||||||
read -n 1 -p "Are you sure you wish to install iPerf (Y/n)?" choice
|
read -n 1 -p "Are you sure you wish to install SpeedTest (Y/n)?" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Nn]) INSTALL_MENU;;
|
[Nn]) INSTALL_MENU;;
|
||||||
* )
|
* )
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
cd /tmp
|
$APTFUNC remove -y -qq speedtest speedtest-cli >/dev/null 2&>1
|
||||||
wget https://downloads.es.net/pub/iperf/iperf-3.10.1.tar.gz
|
pip uninstall speedtest speedtest-cli -y >/dev/null 2&>1
|
||||||
tar -zxhf iperf-3.10.1.tar.gz
|
rm /usr/local/bin/speedtest-cli >/dev/null 2&>1
|
||||||
cd /tmp/iperf-3.10.1
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8E61C2AB9A6D1557
|
||||||
./configure
|
curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
|
||||||
make
|
$APTFUNC install -y speedtest
|
||||||
make install
|
|
||||||
ldconfig
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${Green}iPerf has been Installed${Color_Off}"
|
echo -e "${Green}SpeedTest 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 ""
|
||||||
echo -e "${LightCyan}To run, use the command: speedtest${Color_Off}"
|
echo -e "${LightCyan}To run, use the command: speedtest${Color_Off}"
|
||||||
if [ ${action-x} ]; then exit 0; fi
|
if [ ${action-x} ]; then exit 0; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user