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"
@ -39,8 +42,9 @@ XACCELREDIRECT = True
EOF 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