mirror of
https://github.com/mudler/luet.git
synced 2025-04-29 12:04:17 +00:00
14 lines
477 B
Bash
14 lines
477 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
binpath="${ROOT_DIR}/bin"
|
||
|
if [ ! -e "${binpath}/hugo" ];
|
||
|
then
|
||
|
[[ ! -d "${binpath}" ]] && mkdir -p "${binpath}"
|
||
|
wget https://github.com/gohugoio/hugo/releases/download/v"${HUGO_VERSION}"/hugo_extended_"${HUGO_VERSION}"_"${HUGO_PLATFORM}".tar.gz -O "$binpath"/hugo.tar.gz
|
||
|
tar -xvf "$binpath"/hugo.tar.gz -C "${binpath}"
|
||
|
rm -rf "$binpath"/hugo.tar.gz
|
||
|
chmod +x "$binpath"/hugo
|
||
|
fi
|
||
|
|
||
|
"${binpath}/hugo" --baseURL="$BASE_URL" -s "$ROOT_DIR" serve
|