1
0
Fork 0
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:
tituspijean 2023-10-11 23:30:47 +02:00
parent eeee5fb02c
commit 46ac93e0ac
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -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