Skip to content

Commit

Permalink
roles/common: reorder vars. in backup_postgresql.sh script
Browse files Browse the repository at this point in the history
Signed-off-by: James Oguya <[email protected]>
  • Loading branch information
James Oguya committed Nov 11, 2015
1 parent 87f32bc commit 34f8477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/common/files/scripts/backup_postgresql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ set -e

readonly DATE=$(date +%Y-%m-%d)
readonly BACKUP_DIR="/home/backup/postgresql"
readonly DB_NAMES=$(psql -t -c "${SHOW_DBS}");
readonly SHOW_DBS="select datname from pg_database where datname != 'template0' and datname != 'template1' and datname != 'postgres';"
readonly DB_NAMES=$(psql -t -c "${SHOW_DBS}");

# run as postgres user
if [[ $USER != "postgres" ]]; then
Expand Down

0 comments on commit 34f8477

Please sign in to comment.