Update linupx-scripts.sh
This commit is contained in:
@@ -353,6 +353,22 @@ DSMON_INSTALL() {
|
||||
esac
|
||||
}
|
||||
NETDATA_INSTALL() {
|
||||
if service_exists systemd-networkd; then
|
||||
|
||||
read -n 1 -p "Netdata is already installed, would you like to remove it (y/N)?" choice
|
||||
case "$choice" in
|
||||
[Yy])
|
||||
echo ""
|
||||
wget -O /tmp/netdata-kickstart.sh https://my-netdata.io/kickstart.sh && sh /tmp/netdata-kickstart.sh --uninstall
|
||||
echo ""
|
||||
echo -e "${Green}Netdata Agent has been Removed${Color_Off}"
|
||||
if [ ${action-x} ]; then exit 0; fi
|
||||
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;;
|
||||
@@ -364,6 +380,8 @@ NETDATA_INSTALL() {
|
||||
if [ ${action-x} ]; then exit 0; fi
|
||||
read -n 1 -s -p "Press any key to continue";;
|
||||
esac
|
||||
|
||||
fi
|
||||
}
|
||||
IPERF_INSTALL() {
|
||||
read -n 1 -p "Are you sure you wish to install iPerf (Y/n)?" choice
|
||||
|
||||
Reference in New Issue
Block a user