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>
This commit is contained in:
parent
db2ae35988
commit
7110635134
1 changed files with 3 additions and 3 deletions
|
@ -41,10 +41,10 @@ register_trigger() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for affected in $affects; do
|
for affected in $affects; do
|
||||||
logger -t "ucitrack" "Setting up /etc/config/$config reload dependency on /etc/config/$affected"
|
logger -t "ucitrack" "Setting up /etc/config/$affected reload dependency on /etc/config/$config"
|
||||||
procd_add_config_trigger "config.change" "$affected" \
|
procd_add_config_trigger "config.change" "$config" \
|
||||||
ubus call service event \
|
ubus call service event \
|
||||||
"$(printf '{"type":"config.change","data":{"package":"%s"}}' $config)"
|
"$(printf '{"type":"config.change","data":{"package":"%s"}}' $affected)"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue