add certbot and web deployment scripts

This commit is contained in:
Daniel Micay 2025-10-19 12:21:05 -04:00
parent e84c84db6b
commit 04d0489e57
3 changed files with 55 additions and 0 deletions

11
shared.sh Normal file
View 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