Add support for enabling/disabling the Ubuntu theme
This commit is contained in:
parent
03a15bdec5
commit
f63caae451
@ -74,3 +74,7 @@ options:
|
||||
type: string
|
||||
default: "no"
|
||||
description: Show Django debug messages.
|
||||
ubuntu-theme:
|
||||
type: string
|
||||
default: "yes"
|
||||
description: Use Ubuntu theme for the dashboard.
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
CHARM="openstack-dashboard"
|
||||
|
||||
PACKAGES="openstack-dashboard openstack-dashboard-ubuntu-theme python-keystoneclient python-memcache memcached haproxy"
|
||||
PACKAGES="openstack-dashboard python-keystoneclient python-memcache memcached haproxy"
|
||||
LOCAL_SETTINGS="/etc/openstack-dashboard/local_settings.py"
|
||||
|
||||
if [[ -e "$CHARM_DIR/lib/openstack-common" ]] ; then
|
||||
|
@ -120,6 +120,12 @@ function config_changed {
|
||||
set_or_update DEBUG True
|
||||
fi
|
||||
|
||||
if [ "$(config-get ubuntu-theme)" != "yes" ]; then
|
||||
apt-get purge openstack-dashboard-ubuntu-theme || :
|
||||
else
|
||||
apt-get install openstack-dashboard-ubuntu-theme
|
||||
fi
|
||||
|
||||
# Reconfigure Apache Ports
|
||||
configure_apache "80:70" "443:433"
|
||||
service apache2 restart
|
||||
|
Loading…
Reference in New Issue
Block a user