Jan Dittberner
dea15a6c4f
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/trunk@242 a67ec6bc-e5d5-0310-a910-815c51eb3124
16 lines
448 B
Bash
Executable file
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
|