From 71106351344ea390e0f510e3f9ad34685bacc1ee Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 30 Mar 2022 14:09:10 +0200 Subject: [PATCH] luci-base: ucitrack: fix broken affects logic Changes on a given configuration should trigger change events on affected configurations, not the other way around. Fixes: #5745 Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/etc/init.d/ucitrack | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/luci-base/root/etc/init.d/ucitrack b/modules/luci-base/root/etc/init.d/ucitrack index c7ceb32905..57ac11857f 100755 --- a/modules/luci-base/root/etc/init.d/ucitrack +++ b/modules/luci-base/root/etc/init.d/ucitrack @@ -41,10 +41,10 @@ register_trigger() { fi for affected in $affects; do - logger -t "ucitrack" "Setting up /etc/config/$config reload dependency on /etc/config/$affected" - procd_add_config_trigger "config.change" "$affected" \ + logger -t "ucitrack" "Setting up /etc/config/$affected reload dependency on /etc/config/$config" + procd_add_config_trigger "config.change" "$config" \ ubus call service event \ - "$(printf '{"type":"config.change","data":{"package":"%s"}}' $config)" + "$(printf '{"type":"config.change","data":{"package":"%s"}}' $affected)" done } -- 2.30.2