diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-24 02:18:20 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-26 02:21:41 +0800 |
commit | 046c71c4c282b7c9dce781c8a1f31c68a1515854 (patch) | |
tree | 48e72e89b22c569d716bf66e746ed4a8a0fbfd98 /services/docker/blog/install-hugo.bash | |
parent | 471cacdd706002df81f5bee03729b8fca6c98f37 (diff) | |
download | crupest-046c71c4c282b7c9dce781c8a1f31c68a1515854.tar.gz crupest-046c71c4c282b7c9dce781c8a1f31c68a1515854.tar.bz2 crupest-046c71c4c282b7c9dce781c8a1f31c68a1515854.zip |
feat(www): YEAH!
Diffstat (limited to 'services/docker/blog/install-hugo.bash')
-rwxr-xr-x | services/docker/blog/install-hugo.bash | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/services/docker/blog/install-hugo.bash b/services/docker/blog/install-hugo.bash deleted file mode 100755 index a448138..0000000 --- a/services/docker/blog/install-hugo.bash +++ /dev/null @@ -1,22 +0,0 @@ -#! /usr/bin/env bash - -set -e - -apt-get update -apt-get install -y tini locales curl git -rm -rf /var/lib/apt/lists/* -localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 - -VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') - -echo "The latest version of hugo is $VERSION." - -url="https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_extended_${VERSION}_linux-amd64.deb" - -echo "Download hugo from $url." - -curl -sSfOL "$url" -dpkg -i "hugo_extended_${VERSION}_linux-amd64.deb" -rm "hugo_extended_${VERSION}_linux-amd64.deb" - -echo "Hugo version: $(hugo version)." |