First commit

This commit is contained in:
2025-05-31 15:48:14 +00:00
commit 8bec552adc
7 changed files with 190 additions and 0 deletions

13
entrypoint.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
CRON_EXPR="${BLOCKLIST_CRON:-"0 6 * * *"}" # default: every hour
SCRIPT_PATH="/usr/local/bin/update-blocklist.sh"
echo "Installing cron job with expression: $CRON_EXPR"
echo "$CRON_EXPR root $SCRIPT_PATH" > /etc/crontabs/root
echo "Starting cron..."
crond -f -L /dev/stdout