Fixed error in variable test

This commit is contained in:
Tommaso Piccioli 2016-01-18 09:49:46 +01:00
parent cb618fa8fd
commit 44233dd5f7
1 changed files with 1 additions and 1 deletions

View File

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