fix: clean up nvm installer script and fix bun installation permissions

This commit is contained in:
Paul M 2025-07-14 20:28:29 -05:00
parent f50de651d6
commit 14451c667a

View file

@ -132,13 +132,14 @@ sudo apt install /tmp/steam.deb -y
echo "Installing NVM and Node.js..."
sudo -u "$SUDO_USER" wget -O /tmp/nvm.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh
sudo -Hu "$SUDO_USER" bash /tmp/nvm.sh
rm /tmp/nvm.sh
#sudo -u "$SUDO_USER" . ~/.nvm/nvm.sh
#sudo -u "$SUDO_USER" nvm install --lts
# not sure why these other lines are here, I'll have to check
# Bun
echo "Installing Bun..."
sudo -u "$SUDO_USER" curl -fsSL https://bun.sh/install | bash || { echo "Bun install failed" >&2; exit 1; }
sudo -Hu "$SUDO_USER" curl -fsSL https://bun.sh/install | bash || { echo "Bun install failed" >&2; exit 1; }
# Joplin
sudo -u "$SUDO_USER" wget -O /tmp/joplin_install.sh https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh