summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-03-30 14:09:10 +0200
committerJo-Philipp Wich <jo@mein.io>2022-03-30 14:12:38 +0200
commit71106351344ea390e0f510e3f9ad34685bacc1ee (patch)
tree996292e5e423da751f20e712606d762b2dd3630a /modules
parentdb2ae359884f102027f1ea7c29158fe23cc4a0c3 (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/luci-base/root/etc/init.d/ucitrack6
1 files 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
}