mirror of
https://github.com/Sea-Haven-Industries/seahaven-door-unlock-api.git
synced 2026-09-30 03:43:11 +00:00
fix(terraform): bootstrap node from gzip tarball (#82)
HCP Linux workers do not ship xz, so the plan-time Node download must use the gzip distro tarball.
This commit is contained in:
parent
c43bee214c
commit
cdd810001d
1 changed files with 3 additions and 2 deletions
|
|
@ -30,8 +30,9 @@ ensure_node() {
|
|||
esac
|
||||
tarball="node-v${version}-${os}-${arch}"
|
||||
mkdir -p "${NODE_PREFIX}"
|
||||
curl -fsSL "https://nodejs.org/dist/v${version}/${tarball}.tar.xz" \
|
||||
| tar -xJ -C "${NODE_PREFIX}" --strip-components=1
|
||||
# HCP Terraform Linux workers do not ship xz. Use the gzip tarball.
|
||||
curl -fsSL "https://nodejs.org/dist/v${version}/${tarball}.tar.gz" \
|
||||
| tar -xz -C "${NODE_PREFIX}" --strip-components=1
|
||||
export PATH="${NODE_PREFIX}/bin:${PATH}"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue