Update run.sh

This commit is contained in:
2019-01-30 01:03:26 -06:00
parent fb49a92fc9
commit 135e4b2955

10
run.sh
View File

@@ -2,7 +2,7 @@
# UbUpdate - Ubuntu Update Scripts Loader
if [ ! -f /opt/idssys/settings/linupx.conf ]; then
source /opt/idssys/LinUPx/settings.conf
source /opt/idssys/linupx/settings.conf
else
source /opt/idssys/settings/linupx.conf
fi
@@ -21,7 +21,11 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
#echo ""
#echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
fi
cd /opt/idssys/LinUPx
if [ -d /opt/idssys/LinUPx ]; then
cd /opt/idssys/LinUPx
else
cd /opt/idssys/linupx
fi
if [ "$1" != "update" ] && [ "$1" != "up" ]; then
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
git fetch origin master >/dev/null 2>&1
@@ -37,5 +41,5 @@ echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}"
echo ""
/opt/idssys/LinUPx/linupx-scripts.sh $1 $2 $3 $4
/opt/idssys/linupx/linupx-scripts.sh $1 $2 $3 $4
exit 0