From 6b1a26e49dcca9dde7c9ede2a90bb4d189000519 Mon Sep 17 00:00:00 2001 From: Duncan Wilkie Date: Sat, 17 Feb 2024 11:58:28 -0600 Subject: Fix permissions issues in build script. --- build-n-publish.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build-n-publish.sh b/build-n-publish.sh index fabbd29..10fc741 100755 --- a/build-n-publish.sh +++ b/build-n-publish.sh @@ -5,9 +5,13 @@ cd assets/library git fetch --all && git reset --hard origin/master cd ../.. +# ox-haunt-export sometimes restricts the created post file read permissions to the owner only. +# This gets transferred to the remote by Haunt's ssh access, resulting in publish-only read permissions. +chmod a+r ./posts/* # Build and publish the HTML site: haunt build && haunt publish + # Now convert to Gemini # Uses https://github.com/LukeEmmet/html2gmi # Converts the site into text/gemini; outputs to ./gemini. @@ -27,7 +31,6 @@ for page in $root/site/*.html; do out=$root/gemini/$(basename $page ".html").gmi html2gmi --input $page --output $out --emitImagesAsLinks --prettyTables --citationMarkers; sed -i 's/\.html/.gmi/g' $out - done for page in $root/site/pages/*.html $root/site/posts/*.html; do -- cgit v1.2.3