From 46ac93e0ac103cc2b0e2824be1e98ddd01b89f98 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 11 Oct 2023 23:30:47 +0200 Subject: [PATCH] Fix config panel --- scripts/config | 12 ++++++++++++ scripts/install | 1 + 2 files changed, 13 insertions(+) diff --git a/scripts/config b/scripts/config index 6939c07..f6a09fa 100644 --- a/scripts/config +++ b/scripts/config @@ -10,6 +10,13 @@ source /usr/share/yunohost/helpers ynh_abort_if_errors +#================================================= +# RETRIEVE ARGUMENTS +#================================================= + +install_dir=$(ynh_app_setting_get --app=$app --key=install_dir) +admin=$(ynh_app_setting_get --app=$app --key=admin) + #================================================= # SPECIFIC SETTERS FOR TOML SHORT KEYS #================================================= @@ -75,3 +82,8 @@ set__blogs_list() { ynh_app_setting_set $app blogs_list $blogs_list } + +#================================================= +# GENERIC FINALIZATION +#================================================= +ynh_app_config_run $1 diff --git a/scripts/install b/scripts/install index dbabb60..619e9c0 100755 --- a/scripts/install +++ b/scripts/install @@ -65,6 +65,7 @@ cp $php_config.in $php_config admin_url="${path%/}/admin/" admin=$(yunohost user permission info "$app.admin" --output-as json | jq -r '.allowed | .[]') +ynh_app_setting_set --app=$app --key=admin --value=$admin email=$(ynh_user_get_info --username=$admin --key=mail) # Config as if we called in admin/install/wizard.php