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:
parent
1daf6b6c87
commit
a5a48441cf
4 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
## General
|
||||
IMMICH_VERSION=release
|
||||
|
||||
## Ports
|
||||
IMMICH_HOST=127.0.0.1
|
||||
IMMICH_PORT=__PORT_MACHINELEARNING__
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue