Update run.sh
This commit is contained in:
10
run.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user