fix database creation

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
Simon L 2022-01-14 15:36:15 +01:00 committed by GitHub
parent 94e56757dd
commit fe99c3bc78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ The procedure for migrating the files and the database works like this:
export PG_DATABASE="nextcloud_db"
sudo -u postgres psql <<END
CREATE USER $PG_USER WITH PASSWORD '$PGDB_PASS';
CREATE DATABASE $PG_DATABASE WITH OWNER $NCUSER TEMPLATE template0 ENCODING 'UTF8';
CREATE DATABASE $PG_DATABASE WITH OWNER $PG_USER TEMPLATE template0 ENCODING 'UTF8';
END
```
1. Run the following command to start the conversion: