From 391bc01a168d08580437212fe1f5c2acbfb69f23 Mon Sep 17 00:00:00 2001 From: Hugo Trippaers Date: Tue, 14 May 2013 11:03:13 +0200 Subject: [PATCH] CLOUDSTACK-2440 Print a warning if the rpm can't determine the previous configuration for server.xml or tomcat.conf --- packaging/centos63/cloud.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/centos63/cloud.spec b/packaging/centos63/cloud.spec index 66c7b90ca1e..c4203aa9773 100644 --- a/packaging/centos63/cloud.spec +++ b/packaging/centos63/cloud.spec @@ -398,6 +398,8 @@ if [ -L $oldserverxml ] ; then if [ -L $serverxml ]; then rm -f $serverxml; fi ln -s %{_sysconfdir}/%{name}/management/server-ssl.xml $serverxml fi +else + echo "Unable to determine ssl settings for server.xml, please run cloudstack-setup-management manually" fi tomcatconf=%{_sysconfdir}/%{name}/management/tomcat6.conf @@ -410,6 +412,8 @@ if [ -L $oldtomcatconf ] ; then if [ -L $tomcatconf ]; then rm -f $tomcatconf; fi ln -s %{_sysconfdir}/%{name}/management/tomcat6-ssl.conf $tomcatconf fi +else + echo "Unable to determine ssl settings for tomcat.conf, please run cloudstack-setup-management manually" fi %preun agent