aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-02-03 12:18:16 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-02-03 12:18:16 -0300
commit8eb0eabe388b35032ec085d694df8a7d78d2a575 (patch)
tree601ab971bf94d9ed98929aba69b73ce90204dd1e
parentb7e7cdac5d333cf8a58856e779fb16a5e77d78e3 (diff)
downloadborger-8eb0eabe388b35032ec085d694df8a7d78d2a575.tar.gz
borger-8eb0eabe388b35032ec085d694df8a7d78d2a575.tar.bz2
Feat: STARTUP_DELAY
-rwxr-xr-xborger4
1 files changed, 4 insertions, 0 deletions
diff --git a/borger b/borger
index c12a0df..53274d1 100755
--- a/borger
+++ b/borger
@@ -231,6 +231,10 @@ function borger_check_lockfile {
# Main backup procedure
function borger_run {
+ if [ ! -z "$STARTUP_DELAY" ]; then
+ sleep $STARTUP_DELAY
+ fi
+
borger_check_lockfile
borger_set_lockfile