Skip to content

Commit

Permalink
scripts/bindhosts: tweak crontab defaults
Browse files Browse the repository at this point in the history
better do this when use is actually awake which is
also a higher chance that they have internet access
  • Loading branch information
backslashxx committed Dec 18, 2024
1 parent f575155 commit 8e2c4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/bindhosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ enable_cron() {
# run crond
run_crond
# add entry
echo "0 4 * * * sh $MODDIR/bindhosts.sh --force-update > $rwdir/bindhosts_cron.log 2>&1 &" | busybox crontab -c $PERSISTENT_DIR/crontabs -
echo "0 10 * * * sh $MODDIR/bindhosts.sh --force-update > $rwdir/bindhosts_cron.log 2>&1 &" | busybox crontab -c $PERSISTENT_DIR/crontabs -
echo "[>] $(head -n1 $PERSISTENT_DIR/crontabs/root) "
echo "[+] crontab entry added!"
}
Expand Down Expand Up @@ -298,7 +298,7 @@ show_help () {
printf " --force-reset \t\tforce a reset\n"
printf " --custom-cron \t\tcustom schedule, syntax: \"0 2 * * *\" \n"
printf "\t\t\tif you do NOT know this, use --enable-cron\n"
printf " --enable-cron \t\tenables scheduled updates (4AM daily)\n"
printf " --enable-cron \t\tenables scheduled updates (10AM daily)\n"
printf " --disable-cron \tdisables scheduled updates\n"
printf " --help \t\tdisplays this message\n"
}
Expand Down

0 comments on commit 8e2c4fc

Please sign in to comment.