summaryrefslogtreecommitdiff
path: root/packaging/RPMS/Fedora/rabbitmq-server.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/RPMS/Fedora/rabbitmq-server.spec')
-rw-r--r--packaging/RPMS/Fedora/rabbitmq-server.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/packaging/RPMS/Fedora/rabbitmq-server.spec b/packaging/RPMS/Fedora/rabbitmq-server.spec
index 6a9ce6f5..009d5299 100644
--- a/packaging/RPMS/Fedora/rabbitmq-server.spec
+++ b/packaging/RPMS/Fedora/rabbitmq-server.spec
@@ -91,6 +91,9 @@ fi
%post
/sbin/chkconfig --add %{name}
+if [ -f %{_sysconfdir}/rabbitmq/rabbitmq.conf ] && [ ! -f %{_sysconfdir}/rabbitmq/rabbitmq-env.conf ]; then
+ mv %{_sysconfdir}/rabbitmq/rabbitmq.conf %{_sysconfdir}/rabbitmq/rabbitmq-env.conf
+fi
%preun
if [ $1 = 0 ]; then