Commit ef256991 authored by dmorley's avatar dmorley

add and label config

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