+horizon (2:8.0.0~rc2-2) experimental; urgency=medium
+
+ * Do not set /etc/.../local_settings.py as CONFFILES (Closes: #801543).
+
+ -- Thomas Goirand <zigo@debian.org> Tue, 13 Oct 2015 08:46:21 +0000
+
horizon (2:8.0.0~rc2-1) experimental; urgency=medium
* New upstream release.
#!/bin/sh
+
set -e
if [ "$1" = "configure" ] ; then
chown www-data:www-data /var/lib/openstack-dashboard/static/js
chown www-data:www-data /var/lib/openstack-dashboard/secret-key
- # Compress the JS and CSS with python-compressor and python-lesscpy
+ mkdir -p /etc/openstack-dashboard
+ if ! [ -f /etc/openstack-dashboard/local_settings.py ] ; then
+ cp /usr/share/openstack-dashboard/local_settings.py /etc/openstack-dashboard/local_settings.py
+ fi
+
+ # Compress the JS and CSS with python-compressor and python-lesscpy
/usr/share/openstack-dashboard/manage.py compress --force
rm /var/lib/openstack-dashboard/secret-key/.secret_key_store
chown -R www-data /var/lib/openstack-dashboard/secret-key
set -e
if [ "${1}" = "purge" ] ; then
+ rm -f /etc/openstack-dashboard/local_settings.py
+ rmdir --ignore-fail-on-non-empty /etc/openstack-dashboard || true
rm -rf /var/lib/openstack-dashboard
rm -rf /var/lib/horizon
rm -rf /usr/share/openstack-dashboard
done
install -d -m 755 $(CURDIR)/debian/tmp/usr/share/openstack-dashboard
- install -d -m 755 $(CURDIR)/debian/tmp/etc/openstack-dashboard
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/os.path.join(LOCAL_PATH,/os.path.join("\/","var","lib","openstack-dashboard","secret-key",/' \
- $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.py
- echo "COMPRESS_OFFLINE=True" >> $(CURDIR)/debian/tmp/etc/openstack-dashboard/local_settings.py
+ cp $(CURDIR)/openstack_dashboard/local/local_settings.py.example $(CURDIR)/debian/openstack-dashboard/usr/share/openstack-dashboard/local_settings.py
+ sed -i -e 's/os.path.join(LOCAL_PATH,/os.path.join("\/","var","lib","openstack-dashboard","secret-key",/' $(CURDIR)/debian/openstack-dashboard/usr/share/openstack-dashboard/local_settings.py
+ echo "COMPRESS_OFFLINE=True" >> $(CURDIR)/debian/openstack-dashboard/usr/share/openstack-dashboard/local_settings.py
cp $(CURDIR)/manage.py \
$(CURDIR)/debian/tmp/usr/share/openstack-dashboard/