Commit ef256991 authored by David Morley's avatar David Morley

add and label config

parent dba36d36
<?php
/* Copyright (c) 2011, David Morley. This file is licensed under the Affero General Public License version 3 or later. See the COPYRIGHT file. */
//backup directory
$backup_dir = "/var/www/podup/backup";
//location of pg dump
$pg_dump_dir = "/usr/bin";
//db username
$pguser='';
//db password
$pgpass='';
//db name
$pgdb='';
$geouser='';
$geokey='';
//admin email for forms
$adminemail = '';
//admin key for admin ratings
$adminkey = '';
//mailchimp key
$chimpkey = '';
//apikey for public api calls
$apikey= '';
?>
WGET="/usr/bin/wget"
if [ -s /tmp/index.google ];then
echo "already running"
echo "already running die"
exit;
else
echo "Checking for internet";
echo "Checking for internet";
fi
$WGET -q --tries=10 --timeout=15 http://www.google.com -O /tmp/index.google &> /dev/null
$WGET -d -v --tries=10 --timeout=15 http://www.google.com -O /tmp/index.google
# &> /dev/null
sleep 2
if [ ! -s /tmp/index.google ];then
echo "could not update pods as no internet"
rm /tmp/index.google
rm /tmp/index.google
exit;
else
echo "Pulling in new pod data";
cd /var/www/podup/db
php5 pull.php
touch last.data
php5 backup.php
rm /tmp/index.google
echo "Pulling in new pod data";
cd /var/www/podup/db
php5 pull.php
touch last.data
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