Skip to content

Commit c7a71e5

Browse files
committed
Add --delete-before to ensure the CDN is up to date with the local storage
Closes: phpmyadmin/phpmyadmin#17590
1 parent 8b50ac7 commit c7a71e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

website/daily-snapshots

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ rm -f /mnt/storage/files/snapshots/*
4343
mv release/*.* /mnt/storage/files/snapshots/
4444

4545
# Rsync to CDN
46-
rsync -va /mnt/storage/files/ cdn:/www/
46+
rsync --delete-before -va /mnt/storage/files/ cdn:/www/
4747

4848
# trigger website scan
4949
sudo -u builder /home/builder/website/manage.py import_files

website/sync-files-cdn

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#
1414

1515
# rsync to CDN
16-
rsync -va /mnt/storage/files/ cdn:/www/
16+
rsync --delete-before -va /mnt/storage/files/ cdn:/www/
1717

1818
# trigger website scan
1919
cd /home/builder/website/

0 commit comments

Comments
 (0)