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

. $(dirname "$0")/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"