mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Fix config panel
This commit is contained in:
parent
eeee5fb02c
commit
46ac93e0ac
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue