Use modern apt syntax and selectively use sudo where needed
This commit is contained in:
parent
f0d4749db3
commit
3a4ee57982
|
@ -1,17 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Running intval3 dependency install script"
|
echo "Running intval3 dependency install script"
|
||||||
apt-get update
|
sudo apt update
|
||||||
apt-get install git ufw nginx jq -y
|
sudo apt install git ufw nginx jq -y
|
||||||
|
|
||||||
echo "Installing node.js dependencies.."
|
echo "Installing node.js dependencies.."
|
||||||
apt-get install nodejs npm -y
|
sudo apt install nodejs npm -y
|
||||||
npm install -g n
|
sudo npm install -g n
|
||||||
n latest
|
sudo n latest
|
||||||
npm install -g npm@latest
|
sudo npm install -g npm@latest
|
||||||
npm install -g pm2 node-gyp
|
sudo npm install -g pm2 node-gyp
|
||||||
|
|
||||||
echo "Installing bluetooth dependencies..."
|
echo "Installing bluetooth dependencies..."
|
||||||
apt-get install bluetooth bluez libbluetooth-dev libudev-dev -y
|
sudo apt install bluetooth bluez libbluetooth-dev libudev-dev -y
|
||||||
|
|
||||||
echo "Finished installing intval3 dependencies"
|
echo "Finished installing intval3 dependencies"
|
|
@ -1,28 +1,28 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Running intval3 install script"
|
echo "Running intval3 install script"
|
||||||
apt-get update
|
sudo apt update
|
||||||
apt-get install git ufw nginx jq -y
|
sudo apt install git ufw nginx jq -y
|
||||||
|
|
||||||
echo "Installing node.js dependencies.."
|
echo "Installing node.js dependencies.."
|
||||||
apt-get install nodejs npm -y
|
sudo apt install nodejs npm -y
|
||||||
npm install -g n
|
sudo npm install -g n
|
||||||
n 9.1.0
|
sudo n 9.1.0
|
||||||
npm install -g npm@latest
|
sudo npm install -g npm@latest
|
||||||
npm install -g pm2 node-gyp
|
sudo npm install -g pm2 node-gyp
|
||||||
|
|
||||||
echo "Installing bluetooth dependencies..."
|
echo "Installing bluetooth dependencies..."
|
||||||
apt-get install bluetooth bluez libbluetooth-dev libudev-dev -y
|
sudo apt install bluetooth bluez libbluetooth-dev libudev-dev -y
|
||||||
systemctl disable bluetooth
|
sudo systemctl disable bluetooth
|
||||||
hciconfig hci0 up
|
sudo hciconfig hci0 up
|
||||||
|
|
||||||
echo "Configuring ufw (firewall)..."
|
echo "Configuring ufw (firewall)..."
|
||||||
ufw default deny incoming
|
sudo ufw default deny incoming
|
||||||
ufw default allow outgoing
|
sudo ufw default allow outgoing
|
||||||
ufw allow ssh
|
sudo ufw allow ssh
|
||||||
ufw allow http
|
sudo ufw allow http
|
||||||
ufw allow https
|
sudo ufw allow https
|
||||||
ufw enable
|
sudo ufw enable
|
||||||
|
|
||||||
echo "Installing intval3 project..."
|
echo "Installing intval3 project..."
|
||||||
wget https://github.com/sixteenmillimeter/intval3/archive/master.zip
|
wget https://github.com/sixteenmillimeter/intval3/archive/master.zip
|
||||||
|
|
Loading…
Reference in New Issue