aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-30 18:08:35 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-12-30 18:08:35 +0100
commit5f9106a212a251920360f9763848d07f79688505 (patch)
tree7831c658301a5b2b1057877623a1d5ba762d90dd
parent543b1f369576430b76f0aa7d44c4fe6f7e9785b4 (diff)
downloadansible-memzero-5f9106a212a251920360f9763848d07f79688505.tar.gz
ansible-memzero-5f9106a212a251920360f9763848d07f79688505.zip
git: pull blog from non-redirected port
-rwxr-xr-xroles/git/files/runner-zola/webhook.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/git/files/runner-zola/webhook.sh b/roles/git/files/runner-zola/webhook.sh
index 6f20c8c..1c10685 100755
--- a/roles/git/files/runner-zola/webhook.sh
+++ b/roles/git/files/runner-zola/webhook.sh
@@ -18,7 +18,10 @@ while true; do
REF=${REF:-main}
if [ ! -d blog ]; then
- git clone https://git.memzero.de/blog
+ # Use non-redirected port as redirection is handled via PREROUTING
+ # iptables rules and if this hook runs on the same machine the request
+ # packages will not go through the routing chain.
+ git clone https://git.memzero.de:8443/blog
fi
git -C blog submodule init
git -C blog submodule update