vpnmanager/setup.sh
2018-11-26 09:21:56 +01:00

10 lines
404 B
Bash

#!/bin/bash
sudo apt install -y python3-pip
sudo pip3 install django uwsgi
./manage.py collectstatic
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/"