Update run.sh
This commit is contained in:
10
run.sh
10
run.sh
@@ -2,7 +2,7 @@
|
|||||||
# UbUpdate - Ubuntu Update Scripts Loader
|
# UbUpdate - Ubuntu Update Scripts Loader
|
||||||
|
|
||||||
if [ ! -f /opt/idssys/settings/linupx.conf ]; then
|
if [ ! -f /opt/idssys/settings/linupx.conf ]; then
|
||||||
source /opt/idssys/LinUPx/settings.conf
|
source /opt/idssys/linupx/settings.conf
|
||||||
else
|
else
|
||||||
source /opt/idssys/settings/linupx.conf
|
source /opt/idssys/settings/linupx.conf
|
||||||
fi
|
fi
|
||||||
@@ -21,7 +21,11 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
|
|||||||
#echo ""
|
#echo ""
|
||||||
#echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
|
#echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
|
||||||
fi
|
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 [ "$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
|
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
|
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 -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
/opt/idssys/LinUPx/linupx-scripts.sh $1 $2 $3 $4
|
/opt/idssys/linupx/linupx-scripts.sh $1 $2 $3 $4
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user