From 44233dd5f7d6fed79cf70792740ba3ec16747596 Mon Sep 17 00:00:00 2001 From: "tommaso.piccioli" Date: Mon, 18 Jan 2016 09:49:46 +0100 Subject: [PATCH] Fixed error in variable test --- postgresql/files/postgresql-backup.cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql/files/postgresql-backup.cron b/postgresql/files/postgresql-backup.cron index fb550844..d8374cf5 100755 --- a/postgresql/files/postgresql-backup.cron +++ b/postgresql/files/postgresql-backup.cron @@ -15,7 +15,7 @@ export PATH="/sbin:/usr/sbin:/usr/local/sbin:$PATH" PG_SVC=$( service $PG_SERVICE status >/dev/null ) PG_RUNNING=$? -if [ '$PG_BACKUP_ENABLED' == 'True' ] ; then +if [ $PG_BACKUP_ENABLED == 'True' ] ; then if [ "$PG_RUNNING" -ne "0" -a "$PG_RUNNING" -ne "3" ] ; then echo "The postgresql service is not running" > $LOG_FILE exit 1