Test cron with file creation
continuous-integration/drone/push Build is passing Details

master
remrem 1 year ago
parent aaad11f4f1
commit 6d931ee29b

@ -1,2 +1,2 @@
*/1 * * * * python3 -u /app/generateurModele.py
*/1 * * * * touch /app/cron_exist.cron

@ -6,4 +6,12 @@ echo "[INFO] LAUNCH CRON IN BACKGROUND"
service cron start
service cron status
sleep infinity
while true; do
if [ -f "/app/cron_exist.cron" ]; then
echo "YES CRON WORKS"
else
echo "NO CRON FOR THE MOMENT"
fi
sleep 10
done

Loading…
Cancel
Save