This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# https://stackoverflow.com/a/13365275 | |
# Usage: sqlite3 database_name.sqlite3 .dump | python3 conv.py > database_name.sql | |
import re | |
import fileinput | |
def this_line_is_useless(line): | |
useless_es = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get install -y python3 python3-dev python3-venv python3-setuptools python3-pip redis-server libssl-dev libbz2-dev libffi-dev supervisor nginx | |
adduser --disabled-login allianceserver | |
python3 -m venv /home/allianceserver/env | |
source /home/allianceserver/env/bin/activate | |
pip install git+https://github.com/allianceauth/allianceauth@v2-dev-master-merge | |
pip install gunicorn | |
allianceauth start auth /home/allianceserver/auth | |
ln /home/allianceserver/auth/supervisor.conf /etc/supervisor/conf.d/auth.conf | |
echo "DEBUG = True" >> /home/allianceserver/auth/auth/settings/local.py | |
python /home/allianceserver/auth/manage.py migrate |