From d16d1f85bb5854be192dda84adce0ca635071e2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 29 Jan 2023 15:18:47 +0100 Subject: [PATCH] Fix --- config_panel.toml | 10 ---------- scripts/install | 6 +++--- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index d630ff3..9d701c6 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -3,16 +3,6 @@ version = "1.0" [main] name = "GitList configuration" - [main.config] - name = "Configuration Options" - - [main.config.datadir] - ask = "Default Repository Directories" - type = "path" - default = "/home/yunohost.app/__APP__" - help = "List of directories containing repositories" - bind = "EnableCoverAnimation:/var/www/__APP__/config/config.yml" - [main.php_fpm_config] name = "PHP-FPM configuration" diff --git a/scripts/install b/scripts/install index cd35948..df18f41 100755 --- a/scripts/install +++ b/scripts/install @@ -42,8 +42,6 @@ ynh_script_progression --message="Validating installation parameters..." --weigh final_path=/var/www/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" -datadir=/home/yunohost.app/$app - # Register (book) web path ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url @@ -57,7 +55,6 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage -ynh_app_setting_set --app=$app --key=datadir --value=$datadir #================================================= # INSTALL DEPENDENCIES @@ -101,6 +98,9 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Creating a data directory..." --weight=1 +datadir=/home/yunohost.app/$app +ynh_app_setting_set --app=$app --key=datadir --value=$datadir + mkdir -p $datadir chmod 750 "$datadir"