From f3fcf89cc3387d1b01bdb884b045dbd4cd2da7b3 Mon Sep 17 00:00:00 2001 From: chmistry Date: Tue, 27 Aug 2024 23:04:18 +0200 Subject: [PATCH] alternate db initialization --- install/immich-install.sh | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/install/immich-install.sh b/install/immich-install.sh index 4c6d3ecd..0e7bdb45 100644 --- a/install/immich-install.sh +++ b/install/immich-install.sh @@ -28,26 +28,25 @@ msg_ok "Installed Dependencies" msg_info "Installing Postgresql and pgvector" $STD /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y -apt install -y postgresql postgresql-16-pgvector +$STD apt install -y postgresql postgresql-16-pgvector msg_ok "Installed Postgresql and pgvector" msg_info "Setting up database" #test this: -$STD su postgres -s /bin/sh -c "psql \ -CREATE DATABASE immich; -CREATE USER immich WITH ENCRYPTED PASSWORD 'YUaaWZAvtL@JpNgpi3z6uL4MmDMR_w'; -GRANT ALL PRIVILEGES ON DATABASE immich to immich; -ALTER USER immich WITH SUPERUSER; -\q" +#$STD su postgres -s /bin/sh -c "psql \ +#CREATE DATABASE immich; +#CREATE USER immich WITH ENCRYPTED PASSWORD 'YUaaWZAvtL@JpNgpi3z6uL4MmDMR_w'; +#GRANT ALL PRIVILEGES ON DATABASE immich to immich; +#ALTER USER immich WITH SUPERUSER; +#\q" #otherwise this: -#su postgres <