diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-02-22 18:11:35 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-02-23 01:36:11 +0800 |
commit | 34704b2090c48d9ab9e7458475fd701a38706ae7 (patch) | |
tree | 2aff2885ecfbef32095daf205bf2ebb32a7f2c34 /docker/blog/install-hugo.bash | |
parent | 594691a66ceb00536e133ece321846f7ba49f881 (diff) | |
download | crupest-34704b2090c48d9ab9e7458475fd701a38706ae7.tar.gz crupest-34704b2090c48d9ab9e7458475fd701a38706ae7.tar.bz2 crupest-34704b2090c48d9ab9e7458475fd701a38706ae7.zip |
feat(services): refactor structure.
Diffstat (limited to 'docker/blog/install-hugo.bash')
-rwxr-xr-x | docker/blog/install-hugo.bash | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/docker/blog/install-hugo.bash b/docker/blog/install-hugo.bash deleted file mode 100755 index a448138..0000000 --- a/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)." |