From fa8ac537e9b33dddf9d501569b3a44c14b478e64 Mon Sep 17 00:00:00 2001 From: Maxime Petazzoni Date: Thu, 29 Nov 2012 10:00:39 -0800 Subject: [PATCH] Don't need the update-database-lag-file script anymore Signed-off-by: Maxime Petazzoni --- support/update-database-lag-file | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 support/update-database-lag-file diff --git a/support/update-database-lag-file b/support/update-database-lag-file deleted file mode 100644 index 8b031ecd..00000000 --- a/support/update-database-lag-file +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -# First argument: database hostname. We make the assumption that -# ~/.pgpass contains the necessary information to allow the connection -# to the database. -# -# Second argument: output file. -# -# This script typically needs to be executed as a cronjob - -DATABASE_HOST=$(echo $1 | cut -d':' -f1) -DATABASE_PORT=$(echo $1 | cut -d':' -f2) -test -z $DATABASE_PORT && DATABASE_PORT=5432 -OUTPUT_FILE=$2 - -echo "select last_update from maposmatic_admin;" | \ - psql -h ${DATABASE_HOST} -p ${DATABASE_PORT} -A -t > ${OUTPUT_FILE}