Files
glpi-airwatch-sync/start.sh
2025-07-10 23:05:00 +02:00

38 lines
586 B
Bash

#!/bin/bash
python /pre-start.py
if [ $CONF != '' ]; then
case $TASK in
syncGLPI)
python /airwatchConnector/sync.py -c $CONF -f
;;
stagingAssignment)
python /airwatchConnector/stagingUserAssignation.py -c $CONF -f
;;
*)
exit 0
;;
esac
else
confFiles = $(ls /airwatchConnector/conf/*.conf)
for CONF in $confFiles; do
case $TASK in
syncGLPI)
python /airwatchConnector/sync.py -c $CONF -for
;;
stagingAssignment)
python /airwatchConnector/stagingUserAssignation.py -c $CONF -f
;;
*)
exit 0
;;
esac
done
fi