mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-09 23:34:51 +01:00
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:
parent
d232e76905
commit
dc579e3c60
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue