From 01d79fbaeebce398a400c9220a451cb6912ddfe3 Mon Sep 17 00:00:00 2001 From: ljf Date: Tue, 3 Nov 2020 21:48:58 +0100 Subject: [PATCH] [enh] Some doc about config panel --- scripts/config | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/scripts/config b/scripts/config index 4f6f300..bc1e6c6 100644 --- a/scripts/config +++ b/scripts/config @@ -1,20 +1,16 @@ #!/bin/bash -#================================================= -# GENERIC STARTING -#================================================= -# IMPORT GENERIC HELPERS -#================================================= +# In most simple cases, you don't need a config script (or just to reload services). + +# With a simple config_panel.toml, you can write in the app settings, in the +# 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 @@ -71,7 +67,7 @@ ynh_panel_apply() { _ynh_panel_apply - # Start vpn client + # Reload app service systemctl reload APP }