diff --git a/scripts/hugo-update.sh b/scripts/hugo-update.sh new file mode 100644 index 0000000..5862fc1 --- /dev/null +++ b/scripts/hugo-update.sh @@ -0,0 +1,8 @@ +#!/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"