fix: [scl] Somewhy which scl does not work for user apache...

pull/92/head
Steve Clement 2019-05-08 20:11:31 +09:00
parent c809e285d6
commit 041c2697a0
1 changed files with 1 additions and 2 deletions

View File

@ -22,8 +22,7 @@ fi
if [[ -f "/etc/redhat-release" ]]; then
echo "You are running a RedHat flavour. Detecting scl potential..."
SCL=$(which scl > /dev/null 2>&1)
if [[ ! -z $SCL ]]; then
if [[ -f "/usr/bin/scl" ]]; then
echo "scl detected, checking for redis-server"
SCL_REDIS=$(scl -l|grep rh-redis)
if [[ ! -z $SCL_REDIS ]]; then