Skip to content

Commit

Permalink
PG_HOST test fixed in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Jun 3, 2020
1 parent 2e15e01 commit 2a1a57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/home/www-data/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ su -l www-data -c 'cp /home/www-data/vendor/acdh-oeaw/arche-core/.htaccess /home
# Database connection config
PG_CONN=""
su -l www-data -c 'echo "" > /home/www-data/.pgpass && chmod 600 /home/www-data/.pgpass'
if [ ! -e "$PG_HOST" ]; then
if [ ! -z "$PG_HOST" ]; then
PG_PORT=${PG_PORT:=5432}
PG_USER=${PG_USER:=postgres}
PG_DBNAME=${PG_DBNAME:=postgres}
Expand Down

0 comments on commit 2a1a57e

Please sign in to comment.