Update run.sh

This commit is contained in:
2019-11-24 19:42:39 -06:00
parent e835e12619
commit 6db420a07a

4
run.sh
View File

@@ -13,6 +13,7 @@ if [ "${1}" != "runup" ]; then
echo ""
fi
if [ "${1}" != "runup" ]; then
cd /opt/idssys/defaults
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
@@ -21,8 +22,7 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remot
git repack -ad >/dev/null 2>&1
git prune >/dev/null 2>&1
git pull >/dev/null 2>&1
#echo ""
#echo -e "\e[92m\e[1mLinUPx update completed\e[0m"
fi
fi
if [ -d /opt/idssys/LinUPx ]; then
cd /opt/idssys/LinUPx