mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2025-04-17 22:42:59 -04:00
rename static-deploy
This commit is contained in:
parent
8b8ce937f6
commit
15318cab02
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,6 +4,6 @@
|
||||
/cloud-archive-password.txt
|
||||
/lock
|
||||
/nginx-tmp/
|
||||
/static-deploy/
|
||||
/static-production/
|
||||
/static-tmp/
|
||||
/venv/
|
||||
|
@ -16,9 +16,9 @@ fi
|
||||
remote=root@matrix.grapheneos.org
|
||||
|
||||
# use last modified timestamps from matrix.grapheneos.org
|
||||
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate $remote:/srv/element.grapheneos.org/ static-deploy
|
||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static-deploy
|
||||
for f in static-deploy/**.*(br|gz); do
|
||||
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate $remote:/srv/element.grapheneos.org/ static-production
|
||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static-production
|
||||
for f in static-production/**.*(br|gz); do
|
||||
touch -r "${f%.*}" "$f"
|
||||
done
|
||||
|
||||
@ -35,7 +35,7 @@ echo target is $target
|
||||
echo
|
||||
|
||||
ssh $remote "rm -rf $target && cp -a $active $target"
|
||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-deploy/ $remote:$target
|
||||
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-production/ $remote:$target
|
||||
ssh $remote "ln -snf $target /srv/element.grapheneos.org && sync /srv/element.grapheneos.org"
|
||||
|
||||
echo "root $target;" > nginx-tmp/root_element.grapheneos.org.conf
|
||||
|
Loading…
x
Reference in New Issue
Block a user