Update upscripts.sh
This commit is contained in:
16
upscripts.sh
16
upscripts.sh
@@ -3,7 +3,7 @@
|
||||
|
||||
action="$1"
|
||||
useAutoremove=1
|
||||
FOLDER='/opt/ubuntu-upscripts'
|
||||
FOLDER='/opt/LinUPx'
|
||||
|
||||
Color_Off='\033[0m'
|
||||
Blue='\033[0;34m'
|
||||
@@ -182,7 +182,7 @@ SCRIPT_MENU() {
|
||||
do
|
||||
clear
|
||||
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 " $(hostname --long)"
|
||||
echo "-------------------------------------------------------------"
|
||||
@@ -257,8 +257,8 @@ if [ ${action-x} ]; then
|
||||
exit 1;;
|
||||
esac
|
||||
else
|
||||
if [ -e /opt/ubuntu-upscripts/upscripts-install.sh ]; then
|
||||
rm -f /opt/ubuntu-upscripts/upscripts-install.sh
|
||||
if [ -e /opt/LinUPx/upscripts-install.sh ]; then
|
||||
rm -f /opt/LinUPx/upscripts-install.sh
|
||||
fi
|
||||
if [ -e ~/runup.sh ]; then
|
||||
rm -f ~/runup.sh
|
||||
@@ -272,14 +272,6 @@ else
|
||||
read -n 1 -s -p "Press any key to continue"
|
||||
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
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user