Fix one if
This commit is contained in:
parent
d87fb93360
commit
b545999fb3
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Author: H2 invent GmbH <support@h2-invent.com>
|
||||||
|
# License: AGPLv3
|
||||||
|
# Usage: Use the helper script in cronjobs in hosts or containers.
|
||||||
|
# The cron_lock can be shared so the job will only be executed one.
|
||||||
|
|
||||||
TIME=$(shuf -i 0-800 -n1)
|
TIME=$(shuf -i 0-800 -n1)
|
||||||
sleep 0.$TIME
|
sleep 0.$TIME
|
||||||
echo "Sleep for 0.$TIME"
|
echo "Sleep for 0.$TIME"
|
||||||
|
@ -27,4 +32,5 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "Other Server is running cron job"
|
echo "Other Server is running cron job"
|
||||||
exit 0
|
exit 0
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue