Skip to content

Commit

Permalink
Fixed bug in "BASH_DIR" detection when updating PostgreSQL users
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed May 7, 2020
1 parent 0442536 commit 308d2c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion postgres/shared/upsert_users.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# Update users if database has been already created.
BASE_DIR="$(dirname -f $(readlink -f $(dirname "$BASH_SOURCE")))"
BASE_DIR="$(readlink -f $(dirname $(dirname "$BASH_SOURCE")))"
UPSERT_DB_USERS_TRIGGER_FILE=".upsert_db_users"
PSQL_CMD=""

Expand Down
1 change: 0 additions & 1 deletion postgres/toggle-backup-activation.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash


rm -f /etc/cron.d/backup_postgres_crontab
if [[ (-z "${POSTGRES_BACKUP_SCHEDULE}") || ("${POSTGRES_BACKUP_FROM_SLAVE}" == "True") ]]; then
echo "PostgreSQL automatic backups disabled."
Expand Down

0 comments on commit 308d2c4

Please sign in to comment.