Create hugo-update.sh

This commit is contained in:
Руслан 2023-10-08 23:40:27 +06:00 committed by GitHub
parent 76d1193ae2
commit 39806a0781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
scripts/hugo-update.sh Normal file
View File

@ -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"