Commit 925b5e5a authored by Mattia Rizzolo's avatar Mattia Rizzolo

wrap the cron scrip into flock

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 66e11c27
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
set -euo pipefail set -euo pipefail
# run only one verion of myself
# shellcheck disable=2015
[ "${FLOCKER:-}" != "$0" ] && exec env FLOCKER="$0" flock -E 0 -en "$0" "$0" "$@" || :
base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )" base="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )"
# Allow this script to be run only by ubuntu-it # Allow this script to be run only by ubuntu-it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment