Skip to content

Commit

Permalink
update tools/hptweaks.sh & inc/zendopcache_tweaks.inc
Browse files Browse the repository at this point in the history
fix redis check
  • Loading branch information
centminmod committed Dec 17, 2015
1 parent 7161b09 commit 4053ac9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/zendopcache_tweaks.inc
@@ -1,6 +1,6 @@
opcachehugepages() {
# check if redis installed as redis server requires huge pages disabled
if [[ ! "$(rpm -ql redis | grep not)" ]]; then
if [[ "$(rpm -ql redis | grep -o not)" != 'not' ]]; then
if [[ -f /sys/kernel/mm/redhat_transparent_hugepage/enabled ]]; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
Expand Down
2 changes: 1 addition & 1 deletion tools/hptweaks.sh
Expand Up @@ -20,7 +20,7 @@ if [[ "$(cat /etc/redhat-release | awk '{ print $3 }' | cut -d . -f1)" = '6' ]];
fi

# check if redis installed as redis server requires huge pages disabled
if [[ ! "$(rpm -ql redis | grep not)" ]]; then
if [[ "$(rpm -ql redis | grep -o not)" != 'not' ]]; then
if [[ -f /sys/kernel/mm/redhat_transparent_hugepage/enabled ]]; then
echo never > /sys/kernel/mm/transparent_hugepage/enabled
fi
Expand Down

0 comments on commit 4053ac9

Please sign in to comment.