Update linupx-scripts.sh

This commit is contained in:
2019-01-07 22:53:36 -06:00
parent 7cd4e7c7c8
commit ac219798f2

View File

@@ -227,7 +227,7 @@ DRYRUN2() {
read -n 1 -s -p "Press any key to continue" read -n 1 -s -p "Press any key to continue"
} }
GO_REBOOT() { 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 case "$choice" in
[Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -r now [Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -r now
else shutdown -r now else shutdown -r now
@@ -239,7 +239,7 @@ GO_REBOOT() {
esac esac
} }
SHUTDOWN() { 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 case "$choice" in
[Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -h now [Yy]) if [ "$EUID" -ne 0 ]; then sudo shutdown -h now
else shutdown -h now else shutdown -h now
@@ -262,75 +262,75 @@ EXIT1() {
} }
WEBMIN_INSTALL() { 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 case "$choice" in
[Yy]) [Nn]) INSTALL_MENU;;
* )
echo "" echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/webmin-install.sh) bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/webmin-install.sh)
echo "" echo ""
echo -e "${Green}Webmin has been Installed${Color_Off}" echo -e "${Green}Webmin has been Installed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue";; read -n 1 -s -p "Press any key to continue";;
* ) INSTALL_MENU;;
esac esac
} }
GLANCES_INSTALL() { 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 case "$choice" in
[Yy]) [Nn]) INSTALL_MENU;;
* )
echo "" echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/glances-install.sh) bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/glances-install.sh)
echo "" echo ""
echo -e "${Green}Glances has been Installed${Color_Off}" echo -e "${Green}Glances has been Installed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue";; read -n 1 -s -p "Press any key to continue";;
* ) INSTALL_MENU;;
esac esac
} }
MYSQLBU_INSTALL() { 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 case "$choice" in
[Yy]) [Nn]) INSTALL_MENU;;
* )
echo "" echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/install-mysqlbu.sh) bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/install-mysqlbu.sh)
echo "" echo ""
echo -e "${Green}MySQL-BU has been Installed${Color_Off}" echo -e "${Green}MySQL-BU has been Installed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue";; read -n 1 -s -p "Press any key to continue";;
* ) INSTALL_MENU;;
esac esac
} }
X11VNC_INSTALL() { 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 case "$choice" in
[Yy]) [Nn]) INSTALL_MENU;;
* )
echo "" echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/vnc-install-ubuntu.sh) bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/vnc-install-ubuntu.sh)
echo "" echo ""
echo -e "${Green}x11vnc has been Installed${Color_Off}" echo -e "${Green}x11vnc has been Installed${Color_Off}"
if [ ${action-x} ]; then exit 0; fi if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue";; read -n 1 -s -p "Press any key to continue";;
* ) INSTALL_MENU;;
esac esac
} }
LINUPX_UNINSTALL() { 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 case "$choice" in
[Yy]) [Nn]) INSTALL_MENU;;
* )
echo "" echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/linupx-uninstall.sh) bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/linupx-uninstall.sh)
exit 0;; exit 0;;
* ) INSTALL_MENU;;
esac esac
} }
FW_INSTALL() { 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 case "$choice" in
[Yy]) [Nn]) INSTALL_MENU;;
* )
echo "" echo ""
bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/filewatcher-install.sh) bash <(curl -sL https://git.schroedercity.com/voltron/Misc-Scripts/raw/master/filewatcher-install.sh)
exit 0;; exit 0;;
* ) INSTALL_MENU;;
esac esac
} }