xmppc: Remove the dependency on jq

jq is used inside xmppc init script but it is not declared as a
dependency. Remove this usage of jq.

jq is a complex piece of software that requires security maintenance and
adds bloat to the image. Using existing tools like jshn and jsonfilter
is preferred where the additional functionality provided by jq is not
required.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
This commit is contained in:
Andreas Gnau 2025-08-27 20:02:20 +02:00
parent d232e76905
commit dc579e3c60
No known key found for this signature in database

View file

@ -13,7 +13,7 @@ start_service() {
} }
reload_service() { reload_service() {
xmpp_running="$(ubus call service list '{"name":"xmppc"}' | jq ".xmppc.instances.instance1.running")" xmpp_running="$(ubus call service list '{"name":"xmppc"}' | jsonfilter -e '$.xmppc.instances.instance1.running')"
if [ "${xmpp_running}" = "true" ]; then if [ "${xmpp_running}" = "true" ]; then
procd_send_signal xmppc '*' SIGKILL procd_send_signal xmppc '*' SIGKILL
fi fi