[enh] Some doc about config panel

This commit is contained in:
ljf 2020-11-03 21:48:58 +01:00
parent 0864c8b525
commit 1dc8e862a6

View File

@ -1,20 +1,16 @@
#!/bin/bash #!/bin/bash
#================================================= # In most simple cases, you don't need a config script (or just to reload services).
# GENERIC STARTING
#================================================= # With a simple config_panel.toml, you can write in the app settings, in the
# IMPORT GENERIC HELPERS # upstream config file or replace complete files (logo ...).
#=================================================
# The config scripts allows you to go further, to handle specific cases
# (validation of several interdependent fields, specific getter/setter for a value,
# pre-loading of config type .cube ).
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# RETRIEVE ARGUMENTS
#=================================================
app=$YNH_APP_INSTANCE_NAME
final_path=$(ynh_app_setting_get $app final_path)
#================================================= #=================================================
# SPECIFIC GETTERS FOR TOML SHORT KEY # SPECIFIC GETTERS FOR TOML SHORT KEY
@ -71,7 +67,7 @@ ynh_panel_apply() {
_ynh_panel_apply _ynh_panel_apply
# Start vpn client # Reload app service
systemctl reload APP systemctl reload APP
} }