mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-07-24 07:10:47 -04:00
add file locking to deploy/process scripts
This commit is contained in:
parent
316a5c696b
commit
04fa0a2224
3 changed files with 21 additions and 1 deletions
|
@ -2,7 +2,14 @@
|
|||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
./process-static
|
||||
touch lock
|
||||
exec {fd}< lock
|
||||
if ! flock -n $fd; then
|
||||
echo deploy_static already locked >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./process-static $fd
|
||||
|
||||
remote=root@matrix.grapheneos.org
|
||||
active=$(ssh $remote readlink /srv/element.grapheneos.org)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue