install_httpd-2.4.sh: don't rename '/etc/mysql/my.cnf' if its a symlink.

This commit is contained in:
Christoph 2018-04-12 16:47:30 +02:00
parent 5d13e9aec9
commit 1e7a85ed24

View File

@ -4015,7 +4015,7 @@ fi
## -----
if [[ -d "/usr/local/mysql" ]]; then
if [[ -f "/etc/mysql/my.cnf" ]]; then
if [[ -f "/etc/mysql/my.cnf" ]] && [[ ! -h "/etc/mysql/my.cnf" ]]; then
echononl "\tRename '/etc/mysql/my.cnf' to '/etc/mysql/my.cnf.DEBIAN' .."
echo "" >> ${_logdir}/main.log
echo "## - Rename '/etc/mysql/my.cnf' to '/etc/mysql/my.cnf.DEBIAN'" >> ${_logdir}/main.log