Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix env variable names #19

Merged
merged 1 commit into from
Jun 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# Check if each var is declared and if not,
# set a sensible default

if [ -z "${PGUSER}" ]; then
PGUSER=docker
if [ -z "${POSTGRES_USER}" ]; then
POSTGRES_USER=docker
fi

if [ -z "${POSTGRES_PASS}" ]; then
Expand Down Expand Up @@ -39,8 +39,8 @@ fi
# in then contenxt of then running cron script.

echo "
export PGUSER=$PGUSER
export PGPASSWORD=$POSTGRES_PASS
export PGUSER=$POSTGRES_USER
export PGPASSWORD=\"$POSTGRES_PASS\"
Copy link
Author

@androane androane Jun 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes this issue: #6 , for password only

export PGPORT=$POSTGRES_PORT
export PGHOST=$POSTGRES_HOST
export PGDATABASE=$POSTGRES_DBNAME
Expand Down