From 93fa4676e2cf42908af8fbdbe46617e7c95c5f21 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 28 Mar 2024 19:26:48 +0100 Subject: [PATCH] Fix --- scripts/_common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 99e5c2e..4f6012a 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -133,6 +133,8 @@ myynh_install_python() { # Install immich myynh_install_immich() { + # Thanks to https://github.com/arter97/immich-native + ynh_use_nodejs # Install immich-server @@ -262,7 +264,7 @@ myynh_dump_psql_db() { myynh_restore_psql_db() { # https://github.com/immich-app/immich/issues/5630#issuecomment-1866581570 ynh_replace_string --match_string="SELECT pg_catalog.set_config('search_path', '', false);" \ - --replace_string="SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);" --target_file=target_file + --replace_string="SELECT pg_catalog.set_config('search_path', 'public, pg_catalog', true);" --target_file="db.sql" sudo --login --user=postgres PGUSER=postgres PGPASSWORD="$(cat $PSQL_ROOT_PWD_FILE)" \ psql --cluster="$postgresql_version/main" --dbname="$app" < ./db.sql