Make sure the CGIs are executable on deploy

This commit is contained in:
2024-02-19 19:28:59 +00:00
parent c1ee598fb3
commit ef893f79f9
2 changed files with 5 additions and 1 deletions

0
themes/lhs-retro/static/cgi/status.cgi Normal file → Executable file
View File

View File

@@ -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"
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 \;