mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-25 02:01:52 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -83,7 +83,7 @@ case $(bashio::config 'database') in
|
|||||||
echo "CREATE ROLE root WITH LOGIN SUPERUSER CREATEDB CREATEROLE PASSWORD 'securepassword';
|
echo "CREATE ROLE root WITH LOGIN SUPERUSER CREATEDB CREATEROLE PASSWORD 'securepassword';
|
||||||
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
|
||||||
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