/usr/share/tripleo-image-elements/mysql/install.d/20-galera-libssl-symlink is in python-tripleo-image-elements 0.7.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #!/bin/bash
set -eu
# See bug https://bugs.launchpad.net/percona-xtradb-cluster/+bug/1213855
#
# xtradb-cluster is built expecting libssl and libcryto have the following
# versions. Doing this is terrifying stability-wise for a database.
DISTRO=`lsb_release -si` || true
if [[ "RedHatEnterpriseServer CentOS Fedora" =~ "$DISTRO" ]]; then
if [ "$ARCH" == "amd64" ]; then
LIB_PREFIX=/usr/lib64
else
LIB_PREFIX=/usr/lib
fi
else
if [ "$ARCH" == "amd64" ]; then
LIB_PREFIX=/lib/x86_64-linux-gnu
else
LIB_PREFIX=/lib/$ARCH-linux-gnu
fi
fi
LIBSSL_FILE=$(find $LIB_PREFIX -maxdepth 1 -type f -name "libssl.so.1.0.*" | head -n 1 || echo "")
LIBCRYPTO_FILE=$(find $LIB_PREFIX -maxdepth 1 -type f -name "libcrypto.so.1.0.*" | head -n 1 || echo "")
if [ -z LIBSSL_FILE ]; then
echo "Unable to find compatible libssl"
exit 1
fi
if [ -z LIBCRYPTO_FILE ]; then
echo "Unable to find compatible libcrypto"
exit 1
fi
if [ ! -L $LIB_PREFIX/libssl.so.6 ]; then
ln -s $LIBSSL_FILE $LIB_PREFIX/libssl.so.6
fi
if [ ! -L $LIB_PREFIX/libcrypto.so.6 ]; then
ln -s $LIBCRYPTO_FILE $LIB_PREFIX/libcrypto.so.6
fi
|