separate volta from main install script
This commit is contained in:
parent
76a11f901c
commit
c34b47a0d0
3 changed files with 19 additions and 9 deletions
|
|
@ -13,13 +13,6 @@ update_system() {
|
||||||
sudo apt -y install git vim zsh mplayer
|
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() {
|
install_screen() {
|
||||||
echo "Installing screen program"
|
echo "Installing screen program"
|
||||||
cd portal
|
cd portal
|
||||||
|
|
@ -63,7 +56,6 @@ install_ohmyzsh() {
|
||||||
|
|
||||||
install_all() {
|
install_all() {
|
||||||
update_system
|
update_system
|
||||||
install_volta
|
|
||||||
install_screen
|
install_screen
|
||||||
install_sound_card_drivers
|
install_sound_card_drivers
|
||||||
configure_sound
|
configure_sound
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,8 @@ wget https://git.featherboaz.com/boazsender/portal/archive/main.zip
|
||||||
unzip main.zip
|
unzip main.zip
|
||||||
rm main.zip
|
rm main.zip
|
||||||
cd portal/setup/listener-puppet
|
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
|
### Using node and npm
|
||||||
|
|
|
||||||
17
setup/listener-puppet/volta.sh
Normal file
17
setup/listener-puppet/volta.sh
Normal 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 "------------------------------------------------------"
|
||||||
Loading…
Add table
Reference in a new issue