Tobias Brunner 21bf3e41f9 testing: Use venv for strongTNC
Also updated to a newer version to fix dependency issues.
2023-07-13 10:48:53 +02:00

18 lines
248 B
Bash
Executable File

#!/bin/sh
cd /var/www/tnc
if [ -f django.db ]
then
exit 0
fi
. /usr/local/venvs/tnc/bin/activate
./manage.py migrate --database meta
./manage.py setpassword strongSwan strongSwan
./manage.py collectstatic --noinput
chmod g+w django.db
exit 0