2024-04-04 00:28:32 +02:00
|
|
|
#!/bin/bash
|
|
|
|
# In simple cases, you don't need a config script.
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source ./_common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
ynh_abort_if_errors
|
|
|
|
|
|
|
|
ynh_app_config_apply() {
|
|
|
|
_ynh_app_config_apply
|
|
|
|
load_vars
|
2024-06-04 20:57:21 +02:00
|
|
|
ynh_add_config --jinja --template=monitorix.conf --destination="/etc/monitorix/monitorix.conf"
|
2024-04-04 00:28:32 +02:00
|
|
|
save_vars_current_value
|
|
|
|
}
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC FINALIZATION
|
|
|
|
#=================================================
|
|
|
|
ynh_app_config_run "$1"
|