Skip to content
Snippets Groups Projects
Commit 763e0802 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Set LD_PRELOAD before container starts.

parent 086e908f
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@ function apt_get_install {
libperl-dev \
libltdl-dev \
libltdl7 \
libtcmalloc-minimal4 \
openssl \
make \
wget
......
......@@ -213,6 +213,10 @@ function kinit_svc() {
}
# MAIN
if [ -e /usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4 ]
then
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4"
fi
# ensure data dump dirs present
mkdir -p ${LDAP_BAK_DIR}/mdb ${LDAP_BAK_DIR}/mdb/accesslog ${LDAP_BAK_DIR}/config ${LDAP_MDB_DIR}/accesslog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment