1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/immich_ynh.git synced 2024-09-03 20:36:24 +02:00

Fix db_port issue

This commit is contained in:
Sylvain 2024-07-14 23:29:50 +02:00
parent 1daf6b6c87
commit a5a48441cf
4 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,6 @@
## General
IMMICH_VERSION=release
## Ports
IMMICH_HOST=127.0.0.1
IMMICH_PORT=__PORT_MACHINELEARNING__

View file

@ -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

View file

@ -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"]

View file

@ -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"