Update run.sh
This commit is contained in:
6
run.sh
6
run.sh
@@ -10,7 +10,8 @@ source /opt/idssys/defaults/default.inc
|
||||
source /opt/idssys/mysqlbu/settings.conf
|
||||
|
||||
#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 ""
|
||||
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 ""
|
||||
fi
|
||||
else
|
||||
/opt/idssys/mysqlbu/mysqlbu-scripts.sh $1 $2 $3 $4
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user