1
0
Fork 0
gnuviechadmin-historic/testdb/dbschema/initdb.sh
Jan Dittberner dea15a6c4f - repository reorganization
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/trunk@242 a67ec6bc-e5d5-0310-a910-815c51eb3124
2008-01-12 22:24:08 +00:00

16 lines
448 B
Bash
Executable file

#!/bin/bash
dirname=$(pwd)
dbname=testdb
dbuser=jan
dbpassword=heyyou97
reponame=gnuviechadmin
dburl=postgres://$dbuser:$dbpassword@localhost:5432/$dbname
sudo su - postgres -c "createdb -O $dbuser -E UTF-8 $dbname"
sudo su - postgres -c "psql $dbname < $dirname/initdb.sql"
#migrate create $reponame "GNUViech Admin"
migrate version_control $dburl $reponame
migrate manage manage.py --repository=$reponame --url=$dburl
python manage.py upgrade