update vm build defaults
This commit is contained in:
parent
21b2667f2a
commit
913ad7dd0c
2 changed files with 8 additions and 4 deletions
|
@ -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 \
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue