mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
9 lines
317 B
Bash
Executable File
9 lines
317 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
(
|
|
flock -n 9 || exit 1
|
|
# ... commands executed under lock ...
|
|
CGIT_CONFIG="/etc/cgitrc.slow" /var/www/cgi-bin/cgit --scan-path=/var/lib/dist-git/git/rpms >/var/cache/cgit/repo-list.rc.new 2>/dev/null && mv -f /var/cache/cgit/repo-list.rc.new /var/cache/cgit/repo-list.rc
|
|
|
|
) 9>/var/lock/mylockfile
|