From a5a48441cf9cbd05f41f4d20968d6c5c131359d8 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sun, 14 Jul 2024 23:29:50 +0200 Subject: [PATCH] Fix db_port issue --- conf/env-machine-learning | 3 +++ conf/env-server | 1 + manifest.toml | 2 +- scripts/install | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/conf/env-machine-learning b/conf/env-machine-learning index f55dbf4..33fc0d9 100644 --- a/conf/env-machine-learning +++ b/conf/env-machine-learning @@ -1,3 +1,6 @@ +## General +IMMICH_VERSION=release + ## Ports IMMICH_HOST=127.0.0.1 IMMICH_PORT=__PORT_MACHINELEARNING__ diff --git a/conf/env-server b/conf/env-server index eb332ae..60b8344 100644 --- a/conf/env-server +++ b/conf/env-server @@ -2,6 +2,7 @@ NODE_ENV=production IMMICH_MEDIA_LOCATION=__DATA_DIR__ IMMICH_WEB_ROOT=__INSTALL_DIR__/app/www +IMMICH_VERSION=release ## Ports IMMICH_HOST=127.0.0.1 diff --git a/manifest.toml b/manifest.toml index 37b098d..f24c25a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -7,7 +7,7 @@ name = "Immich" description.en = "Photo and video backup solution directly from your mobile phone" description.fr = "Sauvegarde de photos et de vidéos directement depuis votre mobile" -version = "1.108.0~ynh1" +version = "1.108.0~ynh2" maintainers = ["ewilly"] diff --git a/scripts/install b/scripts/install index 3136367..e44f34b 100755 --- a/scripts/install +++ b/scripts/install @@ -39,7 +39,7 @@ ynh_script_progression --message="Creating a PostgreSQL database..." --weight=1 db_pwd=$(ynh_string_random) myynh_create_psql_db -db_port=$(myynh_execute_psql_as_root --sql="\conninfo" | cut -d'"' -f8) +db_port=$(myynh_execute_psql_as_root --sql="\conninfo" | awk -F '"' '{ print $(NF-1) }') ynh_app_setting_set --app="$app" --key=psql_pwd --value="$db_pwd" ynh_app_setting_set --app="$app" --key=psql_version --value="$(postgresql_version)" ynh_app_setting_set --app="$app" --key=psql_port --value="$db_port"