Update upscripts.sh

This commit is contained in:
2018-03-18 22:32:29 -05:00
parent b8be8d8bc9
commit 11cdc69cda

View File

@@ -3,7 +3,7 @@
action="$1" action="$1"
useAutoremove=1 useAutoremove=1
FOLDER='/opt/ubuntu-upscripts' FOLDER='/opt/LinUPx'
Color_Off='\033[0m' Color_Off='\033[0m'
Blue='\033[0;34m' Blue='\033[0;34m'
@@ -182,7 +182,7 @@ SCRIPT_MENU() {
do do
clear clear
echo "" echo ""
echo -e " ${BBlue}D E B I A N U P D A T E - S C R I P T S${Color_Off} ${Blue}(ver-2.09232017)${Color_Off}" echo -e " ${BBlue}D E B I A N U P D A T E - S C R I P T S${Color_Off} ${Blue}(ver-3.03182018)${Color_Off}"
echo "-------------------------------------------------------------" echo "-------------------------------------------------------------"
echo " $(hostname --long)" echo " $(hostname --long)"
echo "-------------------------------------------------------------" echo "-------------------------------------------------------------"
@@ -257,8 +257,8 @@ if [ ${action-x} ]; then
exit 1;; exit 1;;
esac esac
else else
if [ -e /opt/ubuntu-upscripts/upscripts-install.sh ]; then if [ -e /opt/LinUPx/upscripts-install.sh ]; then
rm -f /opt/ubuntu-upscripts/upscripts-install.sh rm -f /opt/LinUPx/upscripts-install.sh
fi fi
if [ -e ~/runup.sh ]; then if [ -e ~/runup.sh ]; then
rm -f ~/runup.sh rm -f ~/runup.sh
@@ -272,14 +272,6 @@ else
read -n 1 -s -p "Press any key to continue" read -n 1 -s -p "Press any key to continue"
fi fi
# ruTARGET=$"`file ~/runup.sh | awk '{print $5}'`"
# if [ $ruTARGET == "/opt/ubuntu-upscripts/upscripts.sh" ] || [ $ruTARGET == "\`/opt/ubuntu-upscripts/upscripts.sh'" ]; then
# rm ~/runup.sh
# ln -s $FOLDER/run.sh ~/runup.sh
# echo "Recreated runup.sh link to point to the new loader script..."
# sleep 2
# fi
SCRIPT_MENU SCRIPT_MENU
fi fi