summaryrefslogtreecommitdiffstats
path: root/adei/check_adei_control.sh
blob: e9159ed0dbf9dbabef6e3db13e143525f9fda482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

. $(dirname "$0")/lib/adei/adei.sh

status=1


adei_init "$@"; code=$?
adei_process_error $code


cgroup="${adei_args[0]}"
resp=$(adei_value_query "control.php?target=get&control_group=$cgroup"); code=$?
adei_process_error "$code" "$resp" "ADEI/Control"

echo "$status"