mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-02 20:11:59 +08:00
1515d0c210
Signed-off-by: szaimen <szaimen@e.mail.de>
9 lines
260 B
Bash
9 lines
260 B
Bash
#!/bin/bash
|
|
set -ex
|
|
|
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
|
CREATE USER "oc_$POSTGRES_USER" WITH PASSWORD '$POSTGRES_PASSWORD' CREATEDB;
|
|
ALTER DATABASE "$POSTGRES_DB" OWNER TO "oc_$POSTGRES_USER";
|
|
EOSQL
|
|
|
|
set +ex
|