Update run.sh

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

8
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
@@ -36,6 +37,9 @@ if curl -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 20
echo -en "\e[1A"; 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 ""
fi
else
/opt/idssys/mysqlbu/mysqlbu-scripts.sh $1 $2 $3 $4
fi fi
/opt/idssys/mysqlbu/mysqlbu-scripts.sh $1 $2 $3 $4
exit 0 exit 0