commit 541e8bfd9ab81240579cff20ce84d6131afdcfae parent e092c6e1074428673103da549bb3a4fcf2082e70 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Wed, 7 Aug 2024 14:05:09 +0200 fix: replace entire comments, use correct directory Diffstat:
M | build.sh | | | 14 | +++++++------- |
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/build.sh b/build.sh @@ -3,7 +3,7 @@ echo "Starting..." echo "----------" echo "# Exclude error-pages from Proxy" -echo "ProxyPass /error-pages/ !" +echo "ProxyPass /error_pages/ !" echo "# Set Error Documents" mkdir -p ./error_pages/ @@ -12,20 +12,20 @@ mkdir -p ./error_pages/ seq_400="$(seq 400 1 417) $(seq 421 1 424) 426 428 429 431 451" for i in $seq_400; do cp "./template.html" "./error_pages/${i}.html" - sed -e "s/%ERRORCODE%/${i}/g" \ - -e "s/%ERROREXPLAIN%/The requested content might not be available or you are not allowed to see it./" \ + sed -e "s/<!--%ERRORCODE%-->/${i}/g" \ + -e "s/<!--%ERROREXPLAIN%-->/The requested content might not be available or you are not allowed to see it./" \ -i "./error_pages/${i}.html" - echo "ErrorDocument ${i} /error-pages/${i}.html" + echo "ErrorDocument ${i} /error_pages/${i}.html" done ## 500 pages seq_500="$(seq 500 1 508) 510 511" for i in $seq_500; do cp "./template.html" "./error_pages/${i}.html" - sed -e "s/%ERRORCODE%/${i}/g" \ - -e "s/%ERROREXPLAIN%/The Service is currently under maintenance./" \ + sed -e "s/<!--%ERRORCODE%-->/${i}/g" \ + -e "s/<!--%ERROREXPLAIN%-->/The Service is currently under maintenance./" \ -i "./error_pages/${i}.html" - echo "ErrorDocument ${i} /error-pages/${i}.html" + echo "ErrorDocument ${i} /error_pages/${i}.html" done echo "----------"