Update run.sh

This commit is contained in:
2023-05-15 20:16:31 -05:00
parent ed78b57989
commit 9389febd58

6
run.sh
View File

@@ -10,7 +10,8 @@ source /opt/idssys/defaults/default.inc
source /opt/idssys/mysqlbu/settings.conf source /opt/idssys/mysqlbu/settings.conf
#if [ "$1" != "backup" ]; then #if [ "$1" != "backup" ]; then
if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then if [ "${1}" == "update" ]; then
if curl -m 5 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}" echo -en "${idsCL[LightCyan]}Checking for updates...${idsCL[Default]}"
echo "" echo ""
cd /opt/idssys/defaults cd /opt/idssys/defaults
@@ -37,5 +38,8 @@ if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 20
echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}" echo -e "\e[0K\r ${idsCL[Green]}Updates Completed${idsCL[Default]}"
echo "" echo ""
fi fi
else
/opt/idssys/mysqlbu/mysqlbu-scripts.sh $1 $2 $3 $4 /opt/idssys/mysqlbu/mysqlbu-scripts.sh $1 $2 $3 $4
fi
exit 0 exit 0