vpnmanager/setup.sh

12 lines
424 B
Bash
Raw Normal View History

2018-11-26 08:21:49 +00:00
#!/bin/bash
sudo apt install -y python3-pip
sudo pip3 install django uwsgi
./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/"