This commit is contained in:
2025-05-06 11:36:10 +08:00
parent 3a624ba8d1
commit 102c108074
14 changed files with 1571 additions and 73 deletions

View 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