Delay dehydrated cron run for 15 hours + random time.
This commit is contained in:
parent
418beec084
commit
9e9950bf8a
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Delay the run for 15 hours (from midnight) and then run at a random time within 3 hours after that.
|
||||||
|
sleep $(( 54000 + (RANDOM % 10800) ))
|
||||||
|
|
||||||
/usr/sbin/dehydrated -c >/dev/null
|
/usr/sbin/dehydrated -c >/dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue