rhtyd closed pull request #2538: Remove deprecated tomcat configuration file 
instead of moving it, sin…
URL: https://github.com/apache/cloudstack/pull/2538

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/packaging/centos63/cloud.spec b/packaging/centos63/cloud.spec
index 062e511966e..87d2c1ec578 100644
--- a/packaging/centos63/cloud.spec
+++ b/packaging/centos63/cloud.spec
@@ -454,6 +454,10 @@ if [ -f 
"%{_sysconfdir}/cloud.rpmsave/management/db.properties" ]; then
     mv %{_sysconfdir}/cloud.rpmsave/management/db.properties 
+if [ -f %{_sysconfdir}/sysconfig/%{name}-management ] ; then
+    rm -f %{_sysconfdir}/sysconfig/%{name}-management
 chown -R cloud:cloud /var/log/cloudstack/management
 %preun agent
diff --git a/packaging/centos7/cloud.spec b/packaging/centos7/cloud.spec
index 6ed36915ac9..525421c0108 100644
--- a/packaging/centos7/cloud.spec
+++ b/packaging/centos7/cloud.spec
@@ -398,11 +398,13 @@ if [ ! -f 
 if [ -f %{_sysconfdir}/sysconfig/%{name}-management ] ; then
-    mv %{_sysconfdir}/sysconfig/%{name}-management  
+    rm -f %{_sysconfdir}/sysconfig/%{name}-management
 chown -R cloud:cloud /var/log/cloudstack/management
+systemctl daemon-reload
 %preun agent
 /sbin/service cloudstack-agent stop || true
 if [ "$1" == "0" ] ; then


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

Reply via email to