From 135e4b29552630950d750bfcbbcb179055506fd3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 30 Jan 2019 01:03:26 -0600 Subject: [PATCH] Update run.sh --- run.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 4b1fdfd..c83ec7e 100755 --- a/run.sh +++ b/run.sh @@ -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