Update linupx-scripts.sh

This commit is contained in:
2022-11-05 11:04:35 -05:00
parent 066ecc3cee
commit 1b5bba30ac

View File

@@ -353,17 +353,35 @@ DSMON_INSTALL() {
esac esac
} }
NETDATA_INSTALL() { NETDATA_INSTALL() {
read -n 1 -p "Are you sure you wish to install Netdata Agent (Y/n)?" choice if service_exists systemd-networkd; then
case "$choice" in
[Nn]) INSTALL_MENU;; read -n 1 -p "Netdata is already installed, would you like to remove it (y/N)?" choice
* ) case "$choice" in
echo "" [Yy])
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --claim-token GKUQidqs3HAdWdyLgYjjHpI6k0W09TPxv4hyEvESuNKF9Xy0SKBvOr7BokNZHn6j7GUHlfc_R8UQp-dEXPAoRHdEmbSRCGOXX4XiOfMRazUk6Dd_3qjIdqJu9YqDaL2jw1hSTzw --claim-url https://app.netdata.cloud echo ""
echo "" wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall
echo -e "${Green}Netdata Agent has been Installed${Color_Off}" echo ""
if [ ${action-x} ]; then exit 0; fi echo -e "${Green}Netdata Agent has been Removed${Color_Off}"
read -n 1 -s -p "Press any key to continue";; if [ ${action-x} ]; then exit 0; fi
esac read -n 1 -s -p "Press any key to continue";;
* ) INSTALL_MENU;;
esac
else
read -n 1 -p "Are you sure you wish to install Netdata Agent (Y/n)?" choice
case "$choice" in
[Nn]) INSTALL_MENU;;
* )
echo ""
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --claim-token GKUQidqs3HAdWdyLgYjjHpI6k0W09TPxv4hyEvESuNKF9Xy0SKBvOr7BokNZHn6j7GUHlfc_R8UQp-dEXPAoRHdEmbSRCGOXX4XiOfMRazUk6Dd_3qjIdqJu9YqDaL2jw1hSTzw --claim-url https://app.netdata.cloud
echo ""
echo -e "${Green}Netdata Agent has been Installed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue";;
esac
fi
} }
IPERF_INSTALL() { IPERF_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 iPerf (Y/n)?" choice