pull.sh 265 Bytes
Newer Older
1 2 3 4 5 6
WGET="/usr/bin/wget"

$WGET -q --tries=10 --timeout=5 http://www.google.com -O /tmp/index.google &> /dev/null
if [ ! -s /tmp/index.google ];then
	echo "could not update pods as no internet"
else
7
cd /var/www/podup/db
root's avatar
root committed
8
php5 pull.php
9
touch last.data
10
fi
dmorley's avatar
br  
dmorley committed
11
php5 backup.php