From 6d9765f736ef51baf8b8e2b67f68a4fcf6301300 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 21 May 2015 15:22:18 +0300 Subject: [PATCH] Added copying of old configuration files to new directories. --- etc/postrm.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/postrm.in b/etc/postrm.in index b1e86fca5..65c0f7116 100755 --- a/etc/postrm.in +++ b/etc/postrm.in @@ -3,4 +3,9 @@ if [ "$1" -eq 0 ] then rm -f /etc/init.d/maxscale rm -f /etc/ld.so.conf.d/maxscale.conf +else + if [ -f "/usr/local/mariadb-maxscale/etc/MaxScale.cnf" ] + then + cp "/usr/local/mariadb-maxscale/etc/MaxScale.cnf" "/etc/maxscale.cnf" + fi fi