use a simpler plcsh script rather than monitor's tools to keep package
[plcrt.git] / cron.d / syncadmins.sh
index f27243d..3d41b5a 100755 (executable)
@@ -1,7 +1,4 @@
 #!/bin/bash
 
-MDIR=/usr/share/monitor
-source $MDIR/monitorconfig.sh
-${MONITOR_SCRIPT_ROOT}/plcquery.py --type person --withsitename --byrole admin \
-                                       --format="%(email)s,%(first_name)s %(last_name)s,%(name)s" \
-                               | ${MONITOR_SCRIPT_ROOT}/rt3/adduserstort.pl priv -
+RTDIR=/usr/share/plcrt
+${RTDIR}/getadmins.py | ${RTDIR}/adduserstort.pl priv -