infrastructure/scripts/hugo-update.sh

9 lines
230 B
Bash
Raw Permalink Normal View History

2023-10-08 20:40:27 +03:00
#!/bin/bash
HUGO_DIR=/tmp/hugo
rm -r "$HUGO_DIR"
mkdir "$HUGO_DIR"
cd "$HUGO_DIR"
git clone https://github.com/fruworg/fruworg.github.io --recurse-submodules -j8 .
hugo -s /tmp/hugo --destination /var/caddy/hugo
rm -r "$HUGO_DIR"