separate volta from main install script

This commit is contained in:
Boaz Sender 2025-04-20 12:15:44 -07:00
parent 76a11f901c
commit c34b47a0d0
3 changed files with 19 additions and 9 deletions

View file

@ -13,13 +13,6 @@ update_system() {
sudo apt -y install git vim zsh mplayer
}
install_volta() {
echo "Installing node@latest via volta"
sh -c "wget -qO- https://get.volta.sh | bash"
exec $SHELL
volta install node@latest
}
install_screen() {
echo "Installing screen program"
cd portal
@ -63,7 +56,6 @@ install_ohmyzsh() {
install_all() {
update_system
install_volta
install_screen
install_sound_card_drivers
configure_sound

View file

@ -57,7 +57,8 @@ wget https://git.featherboaz.com/boazsender/portal/archive/main.zip
unzip main.zip
rm main.zip
cd portal/setup/listener-puppet
chmod +x install.sh && ./install.sh
chmod +x volta.sh && chmod +x install.sh && ./volta
./install.sh
```
### Using node and npm

View file

@ -0,0 +1,17 @@
is_Raspberry=$(cat /proc/device-tree/model | awk '{print $1}')
if [ "x${is_Raspberry}" != "xRaspberry" ] ; then
echo "This script contains drivers for the Raspberry pi and will not work on the current platform."
exit 1
fi
echo "Installing node@latest via volta"
sh -c "wget -qO- https://get.volta.sh | bash"
exec $SHELL
volta install node@latest
echo "------------------------------------------------------"
echo "Volta is installed."
echo "Continue with ./install.sh"
echo "------------------------------------------------------"