From 041c2697a062e7aed5ce76f4743d99584d8b9509 Mon Sep 17 00:00:00 2001 From: Steve Clement Date: Wed, 8 May 2019 20:11:31 +0900 Subject: [PATCH] fix: [scl] Somewhy which scl does not work for user apache... --- start_all.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/start_all.sh b/start_all.sh index 1b02595..48b9535 100755 --- a/start_all.sh +++ b/start_all.sh @@ -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