aboutsummaryrefslogtreecommitdiff
path: root/src/hugo
diff options
context:
space:
mode:
Diffstat (limited to 'src/hugo')
-rw-r--r--src/hugo/feature.json10
-rw-r--r--src/hugo/install.sh3
2 files changed, 10 insertions, 3 deletions
diff --git a/src/hugo/feature.json b/src/hugo/feature.json
index 0b91ac1..1d06486 100644
--- a/src/hugo/feature.json
+++ b/src/hugo/feature.json
@@ -4,13 +4,19 @@
"options": {
"version": {
"type": "string",
- "proposals": ["latest"],
+ "proposals": [
+ "latest"
+ ],
"default": "latest",
"description": "Select or enter a version."
}
},
+ "containerEnv": {
+ "HUGO_DIR": "/usr/local/hugo",
+ "PATH": "${HUGO_DIR}/bin:${PATH}"
+ },
"install": {
"app": "",
"file": "install.sh"
}
-}
+} \ No newline at end of file
diff --git a/src/hugo/install.sh b/src/hugo/install.sh
index 3913c7a..de1d03c 100644
--- a/src/hugo/install.sh
+++ b/src/hugo/install.sh
@@ -10,10 +10,11 @@
# Syntax: ./hugo-debian.sh [Hugo version] [HUGO_DIR] [Non-root user] [Add rc files flag]
VERSION=${1:-"latest"}
-export HUGO_DIR=${2:-"/usr/local/hugo"}
USERNAME=${3:-"automatic"}
UPDATE_RC=${4:-"true"}
+HUGO_DIR=${HUGO_DIR:-"/usr/local/hugo"}
+
set -e
if [ "$(id -u)" -ne 0 ]; then