From ef893f79f92e46c7b70a42d901b6bbc04f6e2320 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 19 Feb 2024 19:28:59 +0000 Subject: [PATCH] Make sure the CGIs are executable on deploy --- themes/lhs-retro/static/cgi/status.cgi | 0 tools/retro-deploy.sh | 6 +++++- 2 files changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 themes/lhs-retro/static/cgi/status.cgi diff --git a/themes/lhs-retro/static/cgi/status.cgi b/themes/lhs-retro/static/cgi/status.cgi old mode 100644 new mode 100755 diff --git a/tools/retro-deploy.sh b/tools/retro-deploy.sh index 76b2048..efda8e1 100755 --- a/tools/retro-deploy.sh +++ b/tools/retro-deploy.sh @@ -8,5 +8,9 @@ BASE_URL="$2" # Arguments to add to the Hugo call HUGO_ARGUMENTS="--gc" +# Pull the updates and run Hugo git pull -hugo --quiet ${HUGO_ARGUMENTS} -b "${BASE_URL}" -d "${TARGET_FOLDER}" -t "lhs-retro" \ No newline at end of file +hugo --quiet ${HUGO_ARGUMENTS} -b "${BASE_URL}" -d "${TARGET_FOLDER}" -t "lhs-retro" + +# Make sure the CGI scripts are executable +find "${TARGET_FOLDER}" -name "*.cgi" -exec chmod a+x \; \ No newline at end of file