if master check added
This commit is contained in:
parent
ac009a330a
commit
84b1c899ef
|
@ -1,5 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
ISMASTER=`psql -t -c "SELECT pg_is_in_recovery();"`
|
||||
if [ $ISMASTER != 'f' ]
|
||||
then
|
||||
echo "Not on master, nothing to do."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
BASE_BACKUP_DIR={{ psql_base_backup_dir }}
|
||||
WAL_ARCHIVES_LOG_DIR={{ psql_wal_archiving_log_dir }}
|
||||
WAL_LATEST_BACKUP=
|
||||
|
|
Loading…
Reference in New Issue