1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/monitorix_ynh.git synced 2024-09-03 19:46:06 +02:00

Add info about var which change on hooks

This commit is contained in:
Josué Tille 2024-04-12 12:08:30 +02:00
parent 417284cf8f
commit e8466ab1c8
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -18,6 +18,7 @@ for var in $var_list_to_manage; do
value="$(ynh_app_setting_get --app="$app" --key=previous_$var)" value="$(ynh_app_setting_get --app="$app" --key=previous_$var)"
if [ "${!var}" != "$value" ]; then if [ "${!var}" != "$value" ]; then
status_dirty=true status_dirty=true
ynh_print_info --message="The setting '$var' changed. Updating monitorix config."
break break
fi fi
done done
@ -30,7 +31,6 @@ if "$status_dirty"; then
path="$(ynh_app_setting_get --app="$app" --key=path)" path="$(ynh_app_setting_get --app="$app" --key=path)"
port="$(ynh_app_setting_get --app="$app" --key=port)" port="$(ynh_app_setting_get --app="$app" --key=port)"
port_nginx_status="$(ynh_app_setting_get --app="$app" --key=port_nginx_status)" port_nginx_status="$(ynh_app_setting_get --app="$app" --key=port_nginx_status)"
port_nginx_status="$(ynh_app_setting_get --app="$app" --key=port_nginx_status)"
alerts_email="$(ynh_app_setting_get --app="$app" --key=alerts_email)" alerts_email="$(ynh_app_setting_get --app="$app" --key=alerts_email)"
enable_hourly_view="$(ynh_app_setting_get --app="$app" --key=enable_hourly_view)" enable_hourly_view="$(ynh_app_setting_get --app="$app" --key=enable_hourly_view)"