Fix compatibility link creation for mysql.sock on openSUSE

Create the /var/run/mysql/mysql.sock compatibility link already during the
pre-configure run. Otherwise e.g. the "reset-db" script called during the
"boot-stack" element's configure run will fail to find the mysql socket.

Change-Id: I8046f8d056e7d28e046ccfdfd22f6b73338352b6
This commit is contained in:
Ralf Haferkamp 2014-03-07 10:11:39 +01:00
parent 44408e278c
commit ad30163015
2 changed files with 9 additions and 5 deletions

View File

@ -1,7 +1,4 @@
#!/bin/bash
os-svc-restart -n mysql
set -eu
DISTRO=`lsb_release -si` || true
if [ "openSUSE project" = "$DISTRO" ]; then
ln -sf /var/run/mysqld/mysqld.sock /var/run/mysql/mysql.sock
fi
os-svc-restart -n mysql

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -eu
DISTRO=`lsb_release -si` || true
if [ "openSUSE project" = "$DISTRO" ]; then
ln -sf /var/run/mysqld/mysqld.sock /var/run/mysql/mysql.sock
fi