Add a block all robots.txt

This commit is contained in:
2024-02-20 10:49:18 +00:00
parent b49c686a00
commit 2449f4ba3a

View File

@@ -21,6 +21,9 @@ rm -rf ${TARGET_FOLDER}/*
INDEX_PAGE="${TARGET_FOLDER}/index.html" INDEX_PAGE="${TARGET_FOLDER}/index.html"
echo "<meta http-equiv="refresh" content="5"><p>Deploying...</p>" > "${INDEX_PAGE}" echo "<meta http-equiv="refresh" content="5"><p>Deploying...</p>" > "${INDEX_PAGE}"
# Create a block all robots.txt
echo -e "User-agent: *\nDisallow: /" > ${TARGET_FOLDER}/robots.txt"
# Checkout a local bare copy, to speed up later checkouts # Checkout a local bare copy, to speed up later checkouts
ORIGIN=$(git config --get remote.origin.url) ORIGIN=$(git config --get remote.origin.url)
BARE_FOLDER=`mktemp -u -d` BARE_FOLDER=`mktemp -u -d`