Don't need the update-database-lag-file script anymore

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
stable
Maxime Petazzoni 2012-11-29 10:00:39 -08:00
rodzic eb5a262fcb
commit fa8ac537e9
1 zmienionych plików z 0 dodań i 17 usunięć

Wyświetl plik

@ -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}