We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.pgpass
1 parent 9914721 commit d40e90eCopy full SHA for d40e90e
spryker/usr/local/share/spryker/spryker_functions.sh
@@ -49,10 +49,16 @@ do_spryker_app_permissions() {
49
50
do_spryker_config_create() (
51
set +x
52
- echo "Creating Postgres Credentials file in /root/.pgpass"
+ if [ "$NON_PRIVELEGED_USER" = "true" ]; then
53
+ local target=~/.pgpass
54
+ else
55
+ local target=/root/.pgpass
56
+ fi
57
+
58
+ echo "Creating Postgres Credentials file in "$target
59
# create .pgpass in home directory for postgres client
- echo "$DATABASE_HOST:*:*:$DATABASE_USER:$DATABASE_PASSWORD" > /root/.pgpass
- chmod 0600 /root/.pgpass
60
+ echo "$DATABASE_HOST:*:*:$DATABASE_USER:$DATABASE_PASSWORD" > $target
61
+ chmod 0600 $target
62
)
63
64
do_spryker_build() {
0 commit comments