From 39806a0781ced5a25b0b2e3b891af03d73cd3bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD?= Date: Sun, 8 Oct 2023 23:40:27 +0600 Subject: [PATCH] Create hugo-update.sh --- scripts/hugo-update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 scripts/hugo-update.sh 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"