changed getadmins into a generic function for both for admins and other roles.
[plcrt.git] / cron.d / syncadmins.sh
index 3d41b5a..534f65e 100755 (executable)
@@ -1,4 +1,4 @@
 #!/bin/bash
 
 RTDIR=/usr/share/plcrt
-${RTDIR}/getadmins.py | ${RTDIR}/adduserstort.pl priv -
+${RTDIR}/callplcsh.py ${RTDIR}/getadmins.py admin | ${RTDIR}/adduserstort.pl priv -