vpnmanager/setup.sh

12 lines
472 B
Bash
Raw Normal View History

2018-11-26 08:21:49 +00:00
#!/bin/bash
sudo apt install -y python3-pip
2019-01-17 16:55:28 +00:00
sudo pip3 install -U django uwsgi django-two-factor-auth django-bootstrap-form
2018-11-26 08:21:49 +00:00
./manage.py collectstatic
2019-01-09 18:46:03 +00:00
./manage.py migrate
2018-11-26 08:21:49 +00:00
sudo cp 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/"