Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Volta stub to ~/.local/bin instead of /usr/local/bin #148

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions devcontainer/scripts/prepare_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ PKGX_VERSION="1.1.6"
${CURL} "https://github.com/pkgxdev/pkgx/releases/download/v${PKGX_VERSION}/pkgx-${PKGX_VERSION}+linux+${UNAME_ARCH//_/-}.tar.xz" |
tar -C /usr/local/bin -xJf - pkgx

# install volta stub (will be fully downloaded when it is used for the first time)
pkgx install volta.sh

# install s6-overlay
# renovate: datasource=github-releases depName=just-containers/s6-overlay
S6_OVERLAY_VERSION="3.1.6.2"
Expand Down
7 changes: 7 additions & 0 deletions devcontainer/scripts/prepare_user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ printf '\n%s\n' 'export EDITOR="nano"' | tee -a "${HOME}/.bashrc"

chown "${USER}:${USER}" "${HOME}/.bashrc"

# install volta stub (will be fully downloaded when it is used for the first time)
# renovate: datasource=github-releases depName=volta-cli/volta
VOLTA_VERSION="1.1.1"
sudo -u "${USER}" pkgx install "volta.sh@${VOLTA_VERSION}"

# cleanup
sudo -u "${USER}" rm -rf "${HOME}/.pkgx" "${HOME}/.cache/pkgx"

shopt -s nullglob dotglob
rm -rf /tmp/* /var/cache/* /var/lib/apt/lists/*