Configuration files from older installations no longer overwrite existing files.

This commit is contained in:
Markus Makela 2015-09-24 14:35:48 +03:00
parent 6a318836fb
commit 2f0ef4ad31

View File

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