19 lines
615 B
Bash
19 lines
615 B
Bash
#!/bin/bash
|
|
|
|
sudo apt update
|
|
sudo apt install -y python3-pip npm
|
|
sudo pip3 install -U django uwsgi django-two-factor-auth django-bootstrap-form twilio
|
|
useradd vpn
|
|
git submodule init
|
|
git submodule update
|
|
cd lib/jq/
|
|
npm run build
|
|
cd ../..
|
|
./manage.py collectstatic
|
|
./manage.py migrate
|
|
sudo chown vpn.vpn . -R
|
|
sudo cp misc/vpnmanager.service /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable vpnmanager
|
|
sudo systemctl start vpnmanager
|
|
echo "This should be working so far. Now point your webserver to uwsgi.sock using its WSGI options. Be sure to include the static files at static/static_root/"
|