Molecule 7/7: ansible_remote_tmp fix
Test & Deploy Hugo Docker CMS / test-and-deploy (push) Successful in 5m17s

This commit is contained in:
jonnybravo
2026-09-10 09:52:09 +02:00
parent bb3ce30b1a
commit cfb0a60b3b
20 changed files with 45 additions and 4 deletions
+8 -1
View File
@@ -8,6 +8,13 @@ PAGEFIND_DIR="/src/.pagefind"
PAGEFIND_BIN="$PAGEFIND_DIR/pagefind"
PAGEFIND_VERSION="v1.5.2"
# Architektur erkennen (x86_64 / arm64 Raspberry Pi etc.)
case "$(uname -m)" in
x86_64|amd64) PAGEFIND_ARCH="x86_64" ;;
aarch64|arm64) PAGEFIND_ARCH="aarch64" ;;
*) PAGEFIND_ARCH="x86_64" ;;
esac
for md in "$CONTENT_DIR"/*.md; do
[ -f "$md" ] || continue
first_line=$(head -1 "$md")
@@ -38,7 +45,7 @@ if [ ! -x "$PAGEFIND_BIN" ]; then
echo "[pagefind] installiere ${PAGEFIND_VERSION} ..."
mkdir -p "$PAGEFIND_DIR"
wget -q -O /tmp/pagefind.tar.gz \
"https://github.com/CloudCannon/pagefind/releases/download/${PAGEFIND_VERSION}/pagefind-${PAGEFIND_VERSION}-x86_64-unknown-linux-musl.tar.gz" \
"https://github.com/CloudCannon/pagefind/releases/download/${PAGEFIND_VERSION}/pagefind-${PAGEFIND_VERSION}-${PAGEFIND_ARCH}-unknown-linux-musl.tar.gz" \
&& tar -xzf /tmp/pagefind.tar.gz -C "$PAGEFIND_DIR" \
&& chmod +x "$PAGEFIND_BIN" \
&& rm -f /tmp/pagefind.tar.gz \