Update linupx-scripts.sh

This commit is contained in:
2022-02-26 14:40:57 -06:00
parent 2e6c6bdfe1
commit cc28809445

View File

@@ -372,6 +372,26 @@ SPEEDTEST_INSTALL() {
read -n 1 -s -p "Press any key to continue";;
esac
}
URBACKUP_INSTALL() {
read -n 1 -p "Are you sure you wish to install Urbackup Client (Y/n)?" choice
case "$choice" in
[Nn]) INSTALL_MENU;;
* )
echo ""
read -n 1 -p "Enter ClientID:" clientid
read -n 1 -p "Enter Auth Key:" authkey
TF=`mktemp` && wget "http://urbackup.scity.us:55414/x?a=download_client&lang=en&clientid=${clientid}&authkey=${authkey}&os=linux" -O $TF && sudo sh $TF; rm -f $TF
echo ""
echo -e "${Green}UrBackup Client has been Installed${Color_Off}"
echo ""
echo -e "${LightCyan}To run, use the command: speedtest${Color_Off}"
if [ ${action-x} ]; then exit 0; fi
read -n 1 -s -p "Press any key to continue";;
esac
}
X11VNC_INSTALL() {
read -n 1 -p "Are you sure you wish to install x11vnc (Y/n)?" choice
case "$choice" in
@@ -550,6 +570,8 @@ INSTALL_MENU() {
echo ""
echo " [9] Install .bashrc for root"
echo ""
echo " [U] Install UrBackup Client"
echo ""
echo " [0] Remove LinUPx"
echo ""
echo " [B] Back to Update Scripts"
@@ -580,6 +602,8 @@ INSTALL_MENU() {
INSTALL_MENU;;
0) LINUPX_UNINSTALL
INSTALL_MENU;;
[Uu]) URBACKUP_INSTALL
INSTALL_MENU;;
[Bb]) SCRIPT_MENU;;
[Qq]) EXIT1
exit 1;;