Update run.sh

This commit is contained in:
2023-12-22 20:43:34 -06:00
parent 7926052fda
commit 20c53a4b6b

4
run.sh
View File

@@ -16,6 +16,9 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
fi fi
if [ "${1}" != "runup" ]; then if [ "${1}" != "runup" ]; then
if [ ! -d /opt/idssys/defaults ]; then
git clone https://git.schroedercity.com/voltron/iDS-Defaults.git /opt/idssys/defaults
else
cd /opt/idssys/defaults 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 if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
if [ "${1}" != "runup" ]; then if [ "${1}" != "runup" ]; then
@@ -31,6 +34,7 @@ if curl -m 3 -s --head --request GET https://git.schroedercity.com | grep "HTTP
git pull >/dev/null 2>&1 git pull >/dev/null 2>&1
fi fi
fi fi
fi
if [ -d /opt/idssys/LinUPx ]; then if [ -d /opt/idssys/LinUPx ]; then
cd /opt/idssys/LinUPx cd /opt/idssys/LinUPx
else else