mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-24 00:33:09 -05:00
add certbot and web deployment scripts
This commit is contained in:
parent
e84c84db6b
commit
04d0489e57
3 changed files with 55 additions and 0 deletions
11
shared.sh
Normal file
11
shared.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
set -o errexit -o nounset -o pipefail
|
||||
shopt -s expand_aliases inherit_errexit
|
||||
|
||||
alias rsync='rsync -pcv --chmod=D755,F644 --preallocate'
|
||||
|
||||
touch lock
|
||||
exec {fd}< lock
|
||||
if ! flock -n $fd; then
|
||||
echo already deploying >&2
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue