From a4202015cca98ebc5d894134fecfeb7fbacaeb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 1 Apr 2024 00:17:55 +0200 Subject: [PATCH] Redefine postgresql_version as a function because helpers don't exist yet at _common.sh sourcing time --- scripts/_common.sh | 16 ++++++++-------- scripts/install | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 48d1abf..8edb3df 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -7,12 +7,6 @@ # NodeJS required version nodejs_version=20 -# PostgreSQL required version -postgresql_version=$( - ynh_read_manifest --manifest_key="resources.apt.extras.postgresql.packages" \ - | grep -o 'postgresql-[0-9][0-9]-pgvector' | head -n1 | cut -d'-' -f2 -) - # Fail2ban failregex="immich-server.*Failed login attempt for user.+from ip address\s?" @@ -20,6 +14,12 @@ failregex="immich-server.*Failed login attempt for user.+from ip address\s?