diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-03-03 16:58:21 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-03-03 16:58:21 +0800 |
commit | f4f4a347e3dd40974fe707fe833bf2f4df7d05c3 (patch) | |
tree | 58e4c5e44088d428d294a96e234a5a582d014686 /services/docker/nginx/install-hugo.bash | |
parent | d4ee89a4cdbbea634e7536c1c06d3ebbeff2cc9b (diff) | |
download | crupest-f4f4a347e3dd40974fe707fe833bf2f4df7d05c3.tar.gz crupest-f4f4a347e3dd40974fe707fe833bf2f4df7d05c3.tar.bz2 crupest-f4f4a347e3dd40974fe707fe833bf2f4df7d05c3.zip |
feat(www): update page and use hugo image.
Diffstat (limited to 'services/docker/nginx/install-hugo.bash')
-rwxr-xr-x | services/docker/nginx/install-hugo.bash | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/services/docker/nginx/install-hugo.bash b/services/docker/nginx/install-hugo.bash deleted file mode 100755 index dcf6800..0000000 --- a/services/docker/nginx/install-hugo.bash +++ /dev/null @@ -1,15 +0,0 @@ -#! /usr/bin/env bash - -set -e - -apt-get update -apt-get install -y locales curl -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" -curl -fOL "$url" -dpkg -i "hugo_extended_${VERSION}_linux-amd64.deb" -rm "hugo_extended_${VERSION}_linux-amd64.deb" -hugo version |