From 7f8213a32d4f2b41fccaeefa4358d66404193be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 19 Jul 2022 23:42:47 +0200 Subject: [PATCH] Add LFS support --- conf/app.ini | 2 ++ scripts/install | 2 ++ scripts/upgrade | 1 + 3 files changed, 5 insertions(+) diff --git a/conf/app.ini b/conf/app.ini index 542ab68..f7303e6 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -27,6 +27,8 @@ SSH_PORT = __SSH_PORT__ OFFLINE_MODE = false APP_DATA_PATH = __DATA_PATH__ LANDING_PAGE = explore +LFS_START_SERVER = true +LFS_JWT_SECRET = __LFS_KEY__ [mailer] ENABLED = true diff --git a/scripts/install b/scripts/install index fe5f017..349c281 100644 --- a/scripts/install +++ b/scripts/install @@ -43,6 +43,7 @@ fi ynh_script_progression --message="Defining db password and key..." db_password=$(ynh_string_random) key=$(ynh_string_random) +lfs_key=$(ynh_string_random) # Find available ports port=$(ynh_find_port --port 6000) @@ -52,6 +53,7 @@ ynh_script_progression --message="Storing installation settings..." ynh_app_setting_set --app $app --key mysqlpwd --value $db_password ynh_app_setting_set --app $app --key adminusername --value $admin ynh_app_setting_set --app $app --key secret_key --value $key +ynh_app_setting_set --app $app --key lfs_key --value $lfs_key ynh_app_setting_set --app $app --key web_port --value $port #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 330bbcc..8162806 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,6 +21,7 @@ path_url=$(ynh_normalize_url_path --path_url $(ynh_app_setting_get --app $app -- db_password=$(ynh_app_setting_get --app $app --key mysqlpwd) admin=$(ynh_app_setting_get --app $app --key adminusername) key=$(ynh_app_setting_get --app $app --key secret_key) +lfs_key=$(ynh_app_setting_get --app $app --key lfs_key) port=$(ynh_app_setting_get --app $app --key web_port) upstream_version=$(ynh_app_setting_get --app $app --key upstream_version)