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