Compatibility with Debian 11, Fedora 34+ and openSUSE 15.4+
This commit is contained in:
parent
adadb4e3c7
commit
50190ca669
2
webui.sh
2
webui.sh
|
@ -243,7 +243,7 @@ prepare_tcmalloc() {
|
||||||
for lib in "${TCMALLOC_LIBS[@]}"
|
for lib in "${TCMALLOC_LIBS[@]}"
|
||||||
do
|
do
|
||||||
# Determine which type of tcmalloc library the library supports
|
# Determine which type of tcmalloc library the library supports
|
||||||
TCMALLOC="$(PATH=/usr/sbin:$PATH ldconfig -p | grep -P $lib | head -n 1)"
|
TCMALLOC="$(PATH=/sbin:/usr/sbin:$PATH ldconfig -p | grep -P $lib | head -n 1)"
|
||||||
TC_INFO=(${TCMALLOC//=>/})
|
TC_INFO=(${TCMALLOC//=>/})
|
||||||
if [[ ! -z "${TC_INFO}" ]]; then
|
if [[ ! -z "${TC_INFO}" ]]; then
|
||||||
echo "Check TCMalloc: ${TC_INFO}"
|
echo "Check TCMalloc: ${TC_INFO}"
|
||||||
|
|
Loading…
Reference in New Issue