diff options
-rwxr-xr-x | parabola-mirror-repos | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parabola-mirror-repos b/parabola-mirror-repos index 5edfe9b..3414278 100755 --- a/parabola-mirror-repos +++ b/parabola-mirror-repos @@ -79,7 +79,7 @@ local_pool_files="/tmp/${project}-local-files" pool_files_to_delete="/tmp/${project}-to-delete-files" # Lock with flock (provided by util-linux), save to log file and send email on exit -LOCKFILE="/var/lock/${script_filename}" +lockfile="/var/lock/${script_filename}" LOCKFD=99 _lock() { flock -$1 $LOCKFD; } @@ -132,10 +132,10 @@ _no_more_locking() { _lock u _lock xn && \ - rm -f $LOCKFILE + rm -f $lockfile } -_prepare_locking() { eval "exec $LOCKFD>\"$LOCKFILE\""; trap _no_more_locking EXIT; } +_prepare_locking() { eval "exec $LOCKFD>\"$lockfile\""; trap _no_more_locking EXIT; } _prepare_locking |