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:
parent
44408e278c
commit
ad30163015
@ -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
|
||||
|
7
elements/mysql/os-refresh-config/pre-configure.d/40-mysql
Executable file
7
elements/mysql/os-refresh-config/pre-configure.d/40-mysql
Executable 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
|
Loading…
Reference in New Issue
Block a user