diff --git a/vm/build.sh b/vm/build.sh index ea34870f..8699fe45 100755 --- a/vm/build.sh +++ b/vm/build.sh @@ -6,7 +6,7 @@ sudo vmbuilder vbox ubuntu --suite=oneiric \ --dest $base/pandora \ --hostname pandora \ --swapsize 512 \ - --rootsize 65536 \ + --rootsize 1048576 \ --user pandora \ --pass pandora \ --components main,universe,multiverse \ diff --git a/vm/firstboot.sh b/vm/firstboot.sh index 51501294..c92d7573 100755 --- a/vm/firstboot.sh +++ b/vm/firstboot.sh @@ -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" @@ -39,8 +42,9 @@ XACCELREDIRECT = True EOF cd /srv/pandora/pandora -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 +sudo -u pandora python manage.py syncdb --noinput +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