diff --git a/start.sh b/start.sh index 7caa3e6..8e87b4f 100644 --- a/start.sh +++ b/start.sh @@ -6,11 +6,11 @@ if [ $CONF != '' ]; then case $TASK in syncGLPI) - python /airwatchConnector/sync.py -c $CONF -f + python3 /airwatchConnector/sync.py -c $CONF -f ;; stagingAssignment) - python /airwatchConnector/stagingUserAssignation.py -c $CONF -f + python3 /airwatchConnector/stagingUserAssignation.py -c $CONF -f ;; *) @@ -19,15 +19,16 @@ if [ $CONF != '' ]; then esac else confFiles = $(ls /airwatchConnector/conf/*.conf) + if [ $confFiles = '' ]; then exit 1; do for CONF in $confFiles; do case $TASK in syncGLPI) - python /airwatchConnector/sync.py -c $CONF -for + python3 /airwatchConnector/sync.py -c $CONF -for ;; stagingAssignment) - python /airwatchConnector/stagingUserAssignation.py -c $CONF -f + python3 /airwatchConnector/stagingUserAssignation.py -c $CONF -f ;; *)