From 2f0ef4ad31189dc1708aeadd94151c5cbb7f4aed Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 24 Sep 2015 14:35:48 +0300 Subject: [PATCH] Configuration files from older installations no longer overwrite existing files. --- etc/postrm.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/postrm.in b/etc/postrm.in index 7488ebe46..239715448 100755 --- a/etc/postrm.in +++ b/etc/postrm.in @@ -6,7 +6,7 @@ then rm -f /usr/lib/systemd/system/maxscale.service else # Copy and rename config from old location - if [ -f "/usr/local/mariadb-maxscale/etc/MaxScale.cnf" ] + if [ -f "/usr/local/mariadb-maxscale/etc/MaxScale.cnf" -a ! -f "/etc/maxscale.cnf" ] then cp "/usr/local/mariadb-maxscale/etc/MaxScale.cnf" "/etc/maxscale.cnf" fi