diff --git a/linupx-scripts.sh b/linupx-scripts.sh index a6b91b0..25af2d2 100755 --- a/linupx-scripts.sh +++ b/linupx-scripts.sh @@ -227,7 +227,7 @@ DRYRUN2() { read -n 1 -s -p "Press any key to continue" } GO_REBOOT() { - read -n 1 -p "Are you sure you wish to reboot (y/n)?" choice + read -n 1 -p "Are you sure you wish to reboot (y/N)?" choice case "$choice" in [Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -r now else shutdown -r now @@ -239,7 +239,7 @@ GO_REBOOT() { esac } SHUTDOWN() { - read -n 1 -p "Are you sure you wish to shutdown (y/n)?" choice + read -n 1 -p "Are you sure you wish to shutdown (y/N)?" choice case "$choice" in [Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -h now else shutdown -h now @@ -262,75 +262,75 @@ EXIT1() { } WEBMIN_INSTALL() { - read -n 1 -p "Are you sure you wish to install Webmin (y/n)?" choice + read -n 1 -p "Are you sure you wish to install Webmin (Y/n)?" choice case "$choice" in - [Yy]) + [Nn]) INSTALL_MENU;; + * ) echo "" bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/webmin-install.sh) echo "" echo -e "${Green}Webmin 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 } GLANCES_INSTALL() { - read -n 1 -p "Are you sure you wish to install Glances (y/n)?" choice + read -n 1 -p "Are you sure you wish to install Glances (Y/n)?" choice case "$choice" in - [Yy]) + [Nn]) INSTALL_MENU;; + * ) echo "" bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/glances-install.sh) echo "" echo -e "${Green}Glances 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 } MYSQLBU_INSTALL() { - read -n 1 -p "Are you sure you wish to install MySQL-BU (y/n)?" choice + read -n 1 -p "Are you sure you wish to install MySQL-BU (Y/n)?" choice case "$choice" in - [Yy]) + [Nn]) INSTALL_MENU;; + * ) echo "" bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/install-mysqlbu.sh) echo "" echo -e "${Green}MySQL-BU 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 } X11VNC_INSTALL() { - read -n 1 -p "Are you sure you wish to install x11vnc (y/n)?" choice + read -n 1 -p "Are you sure you wish to install x11vnc (Y/n)?" choice case "$choice" in - [Yy]) + [Nn]) INSTALL_MENU;; + * ) echo "" bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/vnc-install-ubuntu.sh) echo "" 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_UNINSTALL() { - read -n 1 -p "Are you sure you wish to remove LinUPx (y/n)?" choice + read -n 1 -p "Are you sure you wish to remove LinUPx (Y/n)?" choice case "$choice" in - [Yy]) + [Nn]) INSTALL_MENU;; + * ) echo "" bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/linupx-uninstall.sh) exit 0;; - * ) INSTALL_MENU;; esac } FW_INSTALL() { - read -n 1 -p "Are you sure you wish to install Filewatcher (y/n)?" choice + read -n 1 -p "Are you sure you wish to install Filewatcher (Y/n)?" choice case "$choice" in - [Yy]) + [Nn]) INSTALL_MENU;; + * ) echo "" bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/filewatcher-install.sh) exit 0;; - * ) INSTALL_MENU;; esac }