diff --git a/immich/rootfs/etc/cont-init.d/99-run.sh b/immich/rootfs/etc/cont-init.d/99-run.sh index 32dcf45ab..32471cfaf 100644 --- a/immich/rootfs/etc/cont-init.d/99-run.sh +++ b/immich/rootfs/etc/cont-init.d/99-run.sh @@ -83,7 +83,7 @@ case $(bashio::config 'database') in echo "CREATE ROLE root WITH LOGIN SUPERUSER CREATEDB CREATEROLE PASSWORD 'securepassword'; CREATE DATABASE immich; CREATE USER immich WITH ENCRYPTED PASSWORD 'immich'; GRANT ALL PRIVILEGES ON DATABASE immich to immich; - \q"> setup_postgres.sql + \q"> setup_postgres.sql chown postgres setup_postgres.sql sudo -iu postgres psql < setup_postgres.sql rm setup_postgres.sql