WIP
This commit is contained in:
17
docker/php/dev/cron_entrypoint.sh
Executable file
17
docker/php/dev/cron_entrypoint.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
echo "Current pwd: $(pwd)"
|
||||
for file in "/etc/cron.d/iptv_jobs" "/var/www/iptv-cli"; do
|
||||
if [ ! -f "$file" ]; then echo "Not found: $file" && exit 1; fi
|
||||
done;
|
||||
|
||||
echo "Importing crontab /etc/cron.d/iptv_jobs:"
|
||||
echo "======================="
|
||||
cat /etc/cron.d/iptv_jobs
|
||||
echo "======================="
|
||||
|
||||
crontab -n /etc/cron.d/iptv_jobs || exit 2
|
||||
|
||||
echo "Running cron with /etc/cron.d/iptv_jobs"
|
||||
crontab /etc/cron.d/iptv_jobs
|
||||
touch /var/log/cron.log
|
||||
cron -L 15 && tail -fn 1 /var/log/cron.log
|
||||
Reference in New Issue
Block a user