38 lines
586 B
Bash
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 |