From 404ea4bc69c5e525613348ca8f62a025f52a44c3 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Wed, 31 Oct 2012 16:33:20 +0000 Subject: [PATCH] Recommends: memcached and use it as default on localhost. Rewritten-From: 782fc88152e882b8494de02cec3c816402c0faf7 --- trusty/debian/changelog | 4 ++++ trusty/debian/control | 1 + trusty/debian/rules | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/trusty/debian/changelog b/trusty/debian/changelog index d5c1477..ce80f63 100644 --- a/trusty/debian/changelog +++ b/trusty/debian/changelog @@ -1,7 +1,11 @@ horizon (2012.2-1) experimental; urgency=low + [ Mehdi Abaakouk ] * New upstream release 2012.2 + [ Thomas Goirand ] + * Recommends: memcached and use it as default on localhost. + -- Mehdi Abaakouk Sat, 29 Sep 2012 09:38:19 +0200 horizon (2012.2~rc1-1) experimental; urgency=low diff --git a/trusty/debian/control b/trusty/debian/control index d6de1a7..599b045 100644 --- a/trusty/debian/control +++ b/trusty/debian/control @@ -65,6 +65,7 @@ Depends: ${shlibs:Depends}, libjs-jquery-cookie, adduser, libapache2-mod-wsgi (>= 2.3) +Recommends: memcached Description: OpenStack Dashboard The OpenStack Dashboard is a Web application allowing to control an OpenStack cloud. diff --git a/trusty/debian/rules b/trusty/debian/rules index 12a6305..5eb0814 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -19,8 +19,12 @@ override_dh_auto_install: cp -a $(CURDIR)/openstack_dashboard/ $(CURDIR)/debian/tmp/usr/share/openstack-dashboard/ + # Sets memcached by default in local_settings.py cp $(CURDIR)/openstack_dashboard/local/local_settings.py.example \ $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.py + sed -i -e 's|^[ \t#]*CACHE_BACKEND[ \t#]*=.*|CACHE_BACKEND = memcached://127.0.0.1:11211/|' \ + $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.py + cp $(CURDIR)/manage.py \ $(CURDIR)/debian/tmp/usr/share/openstack-dashboard/ ln -fs /etc/openstack-dashboard/local_settings.py \ -- 2.45.2