collectors/charts.d/opensips: fix detection of `opensipsctl` executable (#10978)
Ilya Mashchenko committed
Apr 15, 2021 at 10:17 UTC
9469f1de9b09ba7dc500a60230df0635b2f80054
1 file changed
+1
collectors/charts.d.plugin/opensips/opensips.chart.sh
+1
@@ -31,6 +31,7 @@ opensips_check() {
31
# try to find it in the system
32
if [ -z "$opensips_cmd" ]; then
33
require_cmd opensipsctl || return 1
34
+ opensips_cmd="$OPENSIPSCTL_CMD"
35
fi
36
37
# check once if the command works