Commit e7201165 authored by root's avatar root

fix missing =

parent bd16374a
......@@ -271,7 +271,7 @@ $pingdomdate = date('Y-m-d H:i:s');
//sql it
$timenow = date('Y-m-d H:i:s');
$sql = "UPDATE pods SET Hgitdate=$1, Hencoding=$2, secure=$3, hidden=$4, Hruntime=$5, Hgitref=$6, ip=$7, ipv6=$8, monthsmonitored=$9,
uptimelast7=$10, status$11', dateLaststats=$12, dateUpdated=$13, responsetimelast7=$14, score=$15, adminrating=$16, country=$17, city=$18,
uptimelast7=$10, status=$11, dateLaststats=$12, dateUpdated=$13, responsetimelast7=$14, score=$15, adminrating=$16, country=$17, city=$18,
state=$19, lat=$20, long=$21, postalcode='', connection=$22, whois=$23, userrating=$24, longversion=$25, shortversion=$26,
masterversion=$27
WHERE
......
WGET="/usr/bin/wget"
if [ -s /tmp/index.google ];then
echo "already running"
exit;
else
echo "Checking for internet";
fi
$WGET -q --tries=10 --timeout=5 http://www.google.com -O /tmp/index.google &> /dev/null
$WGET -q --tries=10 --timeout=15 http://www.google.com -O /tmp/index.google &> /dev/null
if [ ! -s /tmp/index.google ];then
echo "could not update pods as no internet"
rm /tmp/index.google
else
echo "Pulling in new pod data";
cd /var/www/podup/db
php5 pull.php
touch last.data
fi
php5 backup.php
rm /tmp/index.google
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment