mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
Make sure the CGIs are executable on deploy
This commit is contained in:
0
themes/lhs-retro/static/cgi/status.cgi
Normal file → Executable file
0
themes/lhs-retro/static/cgi/status.cgi
Normal file → Executable 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 \;
|
||||
Reference in New Issue
Block a user