Skip to content

Commit 086359f

Browse files
committed
Remove sudo for finding libjemalloc in pquery-run.sh
1 parent 7b85d26 commit 086359f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pquery-run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ PSORNOT1=$(${BIN} --version | grep -oi 'Percona' | sed 's|p|P|' | head -n1)
116116
PSORNOT2=$(${BIN} --version | grep -oi '5.7.[0-9]\+-[0-9]' | cut -f2 -d'-' | head -n1); if [ "${PSORNOT2}" == "" ]; then PSORNOT2=0; fi
117117
if [ "${SKIP_JEMALLOC_FOR_PS}" != "1" ]; then
118118
if [ "${PSORNOT1}" == "Percona" ] || [ ${PSORNOT2} -ge 1 ]; then
119-
if [ -r `sudo find /usr/*lib*/ -name libjemalloc.so.1 | head -n1` ]; then
120-
export LD_PRELOAD=`sudo find /usr/*lib*/ -name libjemalloc.so.1 | head -n1`
119+
if [ -r `find /usr/*lib*/ -name libjemalloc.so.1 | head -n1` ]; then
120+
export LD_PRELOAD=`find /usr/*lib*/ -name libjemalloc.so.1 | head -n1`
121121
else
122122
echoit "Assert! Binary (${BIN} reported itself as Percona Server, yet jemalloc was not found, please install it!";
123123
echoit "For Centos7 you can do this by: sudo yum -y install epel-release; sudo yum -y install jemalloc;"

0 commit comments

Comments
 (0)