Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (14 sloc) 0.793 kB
#!/bin/bash
# Settings
. settings
apt-get install -y libapache2-mod-wsgi
apt-get install -y openstack-dashboard
# Dashboard Setup
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'DROP DATABASE IF EXISTS horizon;'
mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS -e 'CREATE DATABASE horizon;'
echo "GRANT ALL ON horizon.* TO 'horizon'@'%' IDENTIFIED BY '$MYSQL_HORIZON_PASS'; FLUSH PRIVILEGES;" | mysql -h $MYSQL_HOST -u root -p$MYSQL_ROOT_PASS
sed -e "s,999888777666,$SERVICE_TOKEN,g" local_settings.py.tmpl > local_settings.py
sed -e "s,%MYSQL_HOST%,$MYSQL_HOST,g" -i local_settings.py
sed -e "s,%MYSQL_HORIZON_PASS%,$MYSQL_HORIZON_PASS,g" -i local_settings.py
cp local_settings.py /etc/openstack-dashboard/local_settings.py
/usr/share/openstack-dashboard/dashboard/manage.py syncdb
Jump to Line
Something went wrong with that request. Please try again.