From 9cfbe7fb234913800f6fcd4ac3d693bcd013968c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 17 Jul 2022 16:27:20 +0200 Subject: [PATCH] Add LFS as default --- conf/app.ini | 4 ++-- scripts/install | 2 ++ scripts/upgrade | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/conf/app.ini b/conf/app.ini index da9bfe3..20dfd71 100644 --- a/conf/app.ini +++ b/conf/app.ini @@ -242,11 +242,11 @@ APP_DATA_PATH = __DATADIR__/data LANDING_PAGE = explore ;; ;; Enables git-lfs support. true or false, default is false. -;LFS_START_SERVER = false +LFS_START_SERVER = true ;; ;; ;; LFS authentication secret, change this yourself -LFS_JWT_SECRET = +LFS_JWT_SECRET = __LFS_KEY__ ;; ;; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail. ;LFS_HTTP_AUTH_EXPIRY = 20m diff --git a/scripts/install b/scripts/install index d52aae3..a1a5178 100644 --- a/scripts/install +++ b/scripts/install @@ -26,6 +26,7 @@ path_url=$YNH_APP_ARG_PATH admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC key=$(ynh_string_random --length=24) +lfs_key=$(ynh_string_random --length=24) app=$YNH_APP_INSTANCE_NAME @@ -49,6 +50,7 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=admin --value=$admin ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=key --value=$key +ynh_app_setting_set --app=$app --key=lfs_key --value=$lfs_key #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index a67f623..8c2e10b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,6 +28,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_user=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) key=$(ynh_app_setting_get --app=$app --key=key) +lfs_key=$(ynh_app_setting_get --app=$app --key=lfs_key) #================================================= # CHECK VERSION