Update linupx-scripts.sh

This commit is contained in:
2018-11-23 09:59:29 -06:00
parent 8311486811
commit 7c30ce1e7c

View File

@@ -264,12 +264,24 @@ X11VNC_INSTALL() {
echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/vnc-install-ubuntu.sh)
echo ""
echo -e "${Green}Webmin has been Installed${Color_Off}"
echo -e "${Green}x11vnc has been Installed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue";;
* ) INSTALL_MENU;;
esac
}
LINUPX_UINSTALL() {
read -n 1 -p "Are you sure you wish to remove LinUPx (y/n)?" choice
case "$choice" in
[Yy])
echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/linupx-uninstall.sh)
echo ""
echo -e "${Green}LinUPx has been Removed${Color_Off}"
exit 0;;
* ) INSTALL_MENU;;
esac
}
SCRIPT_MENU() {
LASTRUND=$(stat -c %y /opt/LinUPx/lastrun | cut -d ' ' -f1)
@@ -366,6 +378,8 @@ INSTALL_MENU() {
echo " [2] Glances Install"
echo " [3] x11vnc Install"
echo ""
echo " [0] Remove LinUPx"
echo ""
echo " [B] Back to Update Scripts"
echo " [Q] Quit"
echo ""
@@ -380,6 +394,8 @@ INSTALL_MENU() {
INSTALL_MENU;;
3) X11VNC_INSTALL
INSTALL_MENU;;
0) LINUPX_UNINSTALL
INSTALL_MENU;;
[Bb]) SCRIPT_MENU;;
[Qq]) EXIT1
exit 1;;