Move files common for mysql and mariadb under mysql-common
Because galera library path has to be set in mysql config file, we create a symlink during install time to make sure that there is always same path for mysql and mariadb and for all architectures. Change-Id: Iea3264932ec621d3d7618c5c50cbe47a956fb332
This commit is contained in:
parent
2fca313a8e
commit
2f96bff510
|
@ -34,3 +34,13 @@ register-state-path /var/lib/mysql
|
|||
# the first time we boot a particular state partition we rsync this in.
|
||||
[ -d /var/log/mysql ] || install -d -o root -g mysql -m 0775 /var/log/mysql
|
||||
register-state-path /var/log/mysql
|
||||
|
||||
# galera lib path is set in mysql config file, creating symlink
|
||||
# /usr/local/mysql/lib/libgalera_smm.so allows us to use same path
|
||||
# for mysql and mariadb and for i386/amd64
|
||||
[ -e /usr/local/mysql/lib ] || install -m 0755 -o root -g root -d /usr/local/mysql/lib
|
||||
if [ -e /usr/lib64/galera/libgalera_smm.so ];then
|
||||
ln -sf /usr/lib64/galera/libgalera_smm.so /usr/local/mysql/lib/libgalera_smm.so
|
||||
elif [ -e /usr/lib/galera/libgalera_smm.so ];then
|
||||
ln -sf /usr/lib/galera/libgalera_smm.so /usr/local/mysql/lib/libgalera_smm.so
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue