diff --git a/libs/common.sh b/libs/common.sh index b0ed6b2..547ce2d 100755 --- a/libs/common.sh +++ b/libs/common.sh @@ -17,6 +17,13 @@ install_hugo_v120(){ sudo chmod +x /usr/bin/hugo } +install_hugo_v122(){ + echo "=============================================> 安装 Hugo V0.122.0" + wget -q https://github.com/gohugoio/hugo/releases/download/v0.122.0/hugo_extended_0.122.0_linux-amd64.tar.gz + tar xf hugo_extended_0.122.0_linux-amd64.tar.gz + sudo cp ./hugo /usr/bin/ + sudo chmod +x /usr/bin/hugo +} install_postcss(){ echo "=============================================> 安装 postCSS" diff --git a/webs/fluxcd/toto.sh b/webs/fluxcd/toto.sh index 387615d..726e734 100644 --- a/webs/fluxcd/toto.sh +++ b/webs/fluxcd/toto.sh @@ -4,11 +4,7 @@ initdir=$2 source ${initdir}/libs/common.sh before_flux_website(){ - echo "install hugo" - install_hugo - - # 安装 postCSS - echo "install postCSS" + install_hugo_v122 install_postcss # 添加网站访问统计