fix: clean up nvm installer script and fix bun installation permissions
This commit is contained in:
parent
f50de651d6
commit
14451c667a
1 changed files with 2 additions and 1 deletions
|
@ -132,13 +132,14 @@ sudo apt install /tmp/steam.deb -y
|
||||||
echo "Installing NVM and Node.js..."
|
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 -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
|
sudo -Hu "$SUDO_USER" bash /tmp/nvm.sh
|
||||||
|
rm /tmp/nvm.sh
|
||||||
#sudo -u "$SUDO_USER" . ~/.nvm/nvm.sh
|
#sudo -u "$SUDO_USER" . ~/.nvm/nvm.sh
|
||||||
#sudo -u "$SUDO_USER" nvm install --lts
|
#sudo -u "$SUDO_USER" nvm install --lts
|
||||||
# not sure why these other lines are here, I'll have to check
|
# not sure why these other lines are here, I'll have to check
|
||||||
|
|
||||||
# Bun
|
# Bun
|
||||||
echo "Installing 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
|
# Joplin
|
||||||
sudo -u "$SUDO_USER" wget -O /tmp/joplin_install.sh https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh
|
sudo -u "$SUDO_USER" wget -O /tmp/joplin_install.sh https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue