Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: spec: avoid breaking firewalld
......................................................................

packaging: spec: avoid breaking firewalld

avoid breaking firewalld configuration when upgrading
the -setup package.

Change-Id: Icb96a6bf70a3784187838b51aceff3da6ee11e95
Signed-off-by: Sandro Bonazzola <sbona...@redhat.com>
---
M ovirt-engine.spec.in
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/02/17002/1

diff --git a/ovirt-engine.spec.in b/ovirt-engine.spec.in
index a0cb07b..188ee4e 100644
--- a/ovirt-engine.spec.in
+++ b/ovirt-engine.spec.in
@@ -582,6 +582,13 @@
 %create_engine_user
 
 
+%posttrans setup
+#Avoid breaking firewalld configuration on rpm upgrade.
+if [ -e %{_sysconfdir}/firewalld/services/ovirt.xml.rpmsave ] ; then
+    mv %{_sysconfdir}/firewalld/services/ovirt.xml.rpmsave 
%{_sysconfdir}/firewalld/services/ovirt.xml
+fi
+
+
 %post backend
 
 # ovirt-engine<=3.2 created files at /usr among


-- 
To view, visit http://gerrit.ovirt.org/17002
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb96a6bf70a3784187838b51aceff3da6ee11e95
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to