update vm build defaults

This commit is contained in:
j 2012-03-21 15:11:12 +01:00
parent 21b2667f2a
commit 913ad7dd0c
2 changed files with 8 additions and 4 deletions

View file

@ -6,7 +6,7 @@ sudo vmbuilder vbox ubuntu --suite=oneiric \
--dest $base/pandora \ --dest $base/pandora \
--hostname pandora \ --hostname pandora \
--swapsize 512 \ --swapsize 512 \
--rootsize 65536 \ --rootsize 1048576 \
--user pandora \ --user pandora \
--pass pandora \ --pass pandora \
--components main,universe,multiverse \ --components main,universe,multiverse \

View file

@ -31,7 +31,10 @@ DATABASES = {
} }
} }
DATA_SERVICE='http://data.0xdb.org/api/' DEBUG = False
DATA_SERVICE = ""
SITE_CONFIG = '/srv/pandora/pandora/pandora.jsonc'
BROKER_PASSWORD = "$RABBITPWD" BROKER_PASSWORD = "$RABBITPWD"
@ -40,7 +43,8 @@ EOF
cd /srv/pandora/pandora cd /srv/pandora/pandora
sudo -u pandora python manage.py syncdb --noinput sudo -u pandora python manage.py syncdb --noinput
echo "UPDATE django_site SET domain = 'pandora.local', name = 'pandora.local' WHERE 1=1;" | sudo -u pandora python manage.py dbshell HOST=$(hostname -s)
echo "UPDATE django_site SET domain = '$HOST.local', name = '$HOST.local' WHERE 1=1;" | sudo -u pandora python manage.py dbshell
mkdir /srv/pandora/data mkdir /srv/pandora/data