mrunge pushed to python-django-horizon (master). "removed duplicate post section (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Apr 28 19:00:20 UTC 2015


>From 8a8153ad7917ad2f601ed308190955ea5fce0258 Mon Sep 17 00:00:00 2001
From: Matthias Runge <mrunge at redhat.com>
Date: Tue, 28 Apr 2015 20:59:37 +0200
Subject: removed duplicate post section

Change-Id: I0ecf1df96ff62cd1439d677134ac52eebcc2d193

diff --git a/python-django-horizon.spec b/python-django-horizon.spec
index f9d7f91..d31631e 100644
--- a/python-django-horizon.spec
+++ b/python-django-horizon.spec
@@ -371,11 +371,6 @@ mkdir -p %{buildroot}%{_var}/log/horizon
 mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
 cp -a %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/openstack-dashboard
 
-%post -n openstack-dashboard
-# ugly hack to set a unique SECRET_KEY
-sed -i "/^from horizon.utils import secret_key$/d" /etc/openstack-dashboard/local_settings
-sed -i "/^SECRET_KEY.*$/{N;s/^.*$/SECRET_KEY='`openssl rand -hex 10`'/}" /etc/openstack-dashboard/local_settings
-
 
 %check
 # don't run tests on rhel
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/python-django-horizon.git/commit/?h=master&id=8a8153ad7917ad2f601ed308190955ea5fce0258


More information about the scm-commits mailing list