Updated install process #4

Merged
sixteenmillimeter merged 11 commits from dev into master 2018-10-11 00:47:50 +00:00
1 changed files with 9 additions and 7 deletions
Showing only changes of commit ca1d0c4bb7 - Show all commits

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
echo "Running intval3 install script (this will take a while)..." echo "Running intval3 install script (this will take a while)..."
cd
sudo apt update sudo apt update
sudo apt install git ufw nginx jq -y sudo apt install git ufw nginx jq -y
@ -25,17 +26,18 @@ sudo ufw allow https
sudo ufw enable sudo ufw enable
echo "Installing intval3 project..." echo "Installing intval3 project..."
wget https://github.com/sixteenmillimeter/intval3/archive/master.zip mkdir state
unzip master.zip git clone https://github.com/sixteenmillimeter/intval3.git
rm master.zip
mv intval3-master/ intval3/
cd intval3 cd intval3
echo "Configure nginx..." echo "Configure nginx..."
cp nginx.conf /etc/nginx/sites-available/intval3 sudo cp nginx.conf /etc/nginx/sites-available/intval3
ln -s /etc/nginx/sites-available/intval3 /etc/nginx/sites-enabled/intval3 sudo ln -s /etc/nginx/sites-available/intval3 /etc/nginx/sites-enabled/intval3
rm /etc/nginx/sites-enabled/default sudo rm /etc/nginx/sites-enabled/default
sudo nginx -t
sudo service nginx restart
echo "Install node" echo "Install node"