CLOUDSTACK-2440 Print a warning if the rpm can't determine the previous configuration for server.xml or tomcat.conf

This commit is contained in:
Hugo Trippaers 2013-05-14 11:03:13 +02:00
parent 443534dc72
commit 391bc01a16
1 changed files with 4 additions and 0 deletions

View File

@ -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