mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 14:54:07 +02:00
Update 99-run.sh
This commit is contained in:
@@ -84,6 +84,7 @@ case $(bashio::config 'database') in
|
|||||||
CREATE DATABASE immich; CREATE USER immich WITH ENCRYPTED PASSWORD 'immich';
|
CREATE DATABASE immich; CREATE USER immich WITH ENCRYPTED PASSWORD 'immich';
|
||||||
GRANT ALL PRIVILEGES ON DATABASE immich to immich;
|
GRANT ALL PRIVILEGES ON DATABASE immich to immich;
|
||||||
\q"> setup_postgres.sql
|
\q"> setup_postgres.sql
|
||||||
|
# shellcheck disable=SC2024
|
||||||
chown postgres setup_postgres.sql
|
chown postgres setup_postgres.sql
|
||||||
sudo -iu postgres psql < setup_postgres.sql
|
sudo -iu postgres psql < setup_postgres.sql
|
||||||
rm setup_postgres.sql
|
rm setup_postgres.sql
|
||||||
|
|||||||
Reference in New Issue
Block a user