install generic kernel in vm, that way it can boot of sata controller in virtualbox
This commit is contained in:
parent
a4ac2e03d4
commit
f3c08436b1
4 changed files with 34 additions and 34 deletions
|
|
@ -10,7 +10,7 @@ wget http://firefogg.org/nightly/ffmpeg2theora.linux -O /usr/local/bin/ffmpeg2th
|
|||
chmod 755 /usr/local/bin/ffmpeg2theora
|
||||
|
||||
#postgresql
|
||||
apt-get -y install postgresql
|
||||
apt-get -y install postgresql postgresql-contrib
|
||||
sudo -u postgres createuser -S -D -R pandora
|
||||
sudo -u postgres createdb -T template0 --locale=C --encoding=UTF8 -O pandora pandora
|
||||
|
||||
|
|
@ -21,6 +21,9 @@ rabbitmqctl add_vhost /pandora
|
|||
rabbitmqctl set_permissions -p /pandora pandora ".*" ".*" ".*"
|
||||
|
||||
#pandora
|
||||
HOST=$(hostname -s)
|
||||
SITE_CONFIG="/srv/pandora/pandora/$HOST.jsonc"
|
||||
test -e $SITE_CONFIG || cp /srv/pandora/pandora/0xdb.jsonc $SITE_CONFIG
|
||||
cat > /srv/pandora/pandora/local_settings.py << EOF
|
||||
DATABASES = {
|
||||
'default': {
|
||||
|
|
@ -30,20 +33,15 @@ DATABASES = {
|
|||
'PASSWORD': '',
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG = False
|
||||
|
||||
DATA_SERVICE = ""
|
||||
SITE_CONFIG = '/srv/pandora/pandora/pandora.jsonc'
|
||||
|
||||
SITE_CONFIG = '$SITE_CONFIG'
|
||||
BROKER_PASSWORD = "$RABBITPWD"
|
||||
|
||||
XACCELREDIRECT = True
|
||||
EOF
|
||||
|
||||
cd /srv/pandora/pandora
|
||||
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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue