File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 88/lock-server
99/nginx-tmp /
1010/node_modules /
11+ /static-deploy /
1112/static-tmp /
1213/venv /
Original file line number Diff line number Diff line change 22
33set -o errexit -o nounset -o pipefail
44
5+ shopt -s extglob
6+
57touch lock
68exec {fd}< lock
79if ! flock -n $fd ; then
1214./process-static $fd
1315
141617+
18+ # use last modified timestamps from attestation.app
19+ rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate $remote :/srv/attestation.app/ static-deploy
20+ rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static-deploy
21+ for f in static-deploy/** .* (br| gz); do
22+ touch -r ${f% .* } $f
23+ done
24+
1525active=$( ssh $remote readlink /srv/attestation.app)
1626
1727if [[ $active = /srv/attestation.app_a ]]; then
@@ -25,7 +35,7 @@ echo target is $target
2535echo
2636
2737ssh $remote " rm -rf $target && cp -a $active $target "
28- rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp / $remote :$target
38+ rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-deploy / $remote :$target
2939ssh $remote " ln -snf $target /srv/attestation.app && sync /srv/attestation.app"
3040
3141echo " root $target ;" > nginx-tmp/root_attestation.app.conf
You can’t perform that action at this time.
0 commit comments