fix app db permissions
This commit is contained in:
parent
cfe9e0373d
commit
7b5108727a
@ -7,5 +7,6 @@ if [ -n "$POSTGRES_APP_USER" ] && [ -n "$POSTGRES_APP_PASSWORD" ] && [ -n "$POST
|
|||||||
CREATE USER $POSTGRES_APP_USER WITH ENCRYPTED PASSWORD '${POSTGRES_APP_PASSWORD}';
|
CREATE USER $POSTGRES_APP_USER WITH ENCRYPTED PASSWORD '${POSTGRES_APP_PASSWORD}';
|
||||||
CREATE DATABASE $POSTGRES_APP_DB;
|
CREATE DATABASE $POSTGRES_APP_DB;
|
||||||
GRANT ALL PRIVILEGES ON DATABASE $POSTGRES_APP_DB TO $POSTGRES_APP_USER;
|
GRANT ALL PRIVILEGES ON DATABASE $POSTGRES_APP_DB TO $POSTGRES_APP_USER;
|
||||||
|
ALTER DATABASE $POSTGRES_APP_DB OWNER TO $POSTGRES_APP_USER;
|
||||||
EOSQL
|
EOSQL
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user