From e07e479460fc55e7d9f8ddcf3af7520efb3fd6c9 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Wed, 31 Aug 2022 20:35:37 -0700 Subject: [PATCH] fix file attrs --- Makefile | 2 +- scripts/compress.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 58aa095..3f6f15b 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ WWW_RSYNC_DEST = $(USER):$(WWW_ROOT) GEMINI_RSYNC_DEST = $(USER):$(GEMINI_ROOT) OUTPUT_DIR = public -RSYNCFLAGS += -rlpcv --zc=zstd --zl=6 --skip-compress=gz/br/zst/png/webp/jpg/avif/jxl/mp4/mkv/webm/opus/mp3 -e "ssh -o KexAlgorithms=sntrup761x25519-sha512@openssh.com" +RSYNCFLAGS += -rlpcv --zc=zstd --zl=6 --skip-compress=gz/br/zst/png/webp/jpg/avif/jxl/mp4/mkv/webm/opus/mp3 -e "ssh -o KexAlgorithms=sntrup761x25519-sha512@openssh.com" --chmod=D755,F644 RSYNCFLAGS_EXTRA ?= # compression gets slow for extreme levels like the old "70109" ECT_LEVEL=9 diff --git a/scripts/compress.sh b/scripts/compress.sh index 4549cb9..7e0898d 100644 --- a/scripts/compress.sh +++ b/scripts/compress.sh @@ -15,6 +15,7 @@ alias find_compressible='find "$output_dir" -type f \( -name "*.html" -o -name " if [ "$format" = "gzip" ]; then compress_level="$3" find_compressible -exec ect -quiet -"$compress_level" -gzip {} \; + find_compressible -exec touch -r {} {}.gz \; elif [ "$2" = "brotli" ]; then find_compressible -exec brotli -Z -- {} \; fi