summaryrefslogtreecommitdiff
path: root/testing/hosts/default/usr/local/bin/init_tnc
blob: 49084e477efd9d645c9311c610c62f07488f1693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

cd /var/www/tnc

if [ -f django.db ]
then
	exit 0 
fi

./manage.py migrate --database meta
./manage.py setpassword strongSwan strongSwan
./manage.py collectstatic --noinput

chmod g+w django.db
exit 0