mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
Revert "add a check for init-user-db.sh"
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
4ecfaa0650
commit
feb6438d39
2 changed files with 0 additions and 24 deletions
|
|
@ -1,13 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
touch /mnt/data/initdb.failed
|
||||
|
||||
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
|
||||
|
||||
rm /mnt/data/initdb.failed
|
||||
|
||||
set +ex
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue