forked from ISTI-ansible-roles/ansible-roles
Fixed error in variable test
This commit is contained in:
parent
cb618fa8fd
commit
44233dd5f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue