Merge "Install link to mysql unix socket"

This commit is contained in:
Jenkins 2014-01-07 21:48:43 +00:00 committed by Gerrit Code Review
commit 29a5a1c82f
1 changed files with 7 additions and 0 deletions

View File

@ -31,3 +31,10 @@ register-state-path /var/log/mysql
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
systemctl enable mysqld.service
fi
DISTRO=`lsb_release -si` || true
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
# mysql clients on redhat expect the socket at /var/lib/mysql/mysql.sock
mkdir -p /var/lib/mysql
ln -s /var/run/mysqld/mysqld.sock /var/lib/mysql/mysql.sock
fi