From 70a30412a5755387bfad062938858bc727510bb2 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 12 Sep 2023 17:00:11 +0800 Subject: [PATCH] Update install.sh --- plugins/redis/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/redis/install.sh b/plugins/redis/install.sh index 4ac45c95b..9e84b6deb 100755 --- a/plugins/redis/install.sh +++ b/plugins/redis/install.sh @@ -25,7 +25,13 @@ Install_redis() mkdir -p $serverPath/redis mkdir -p $serverPath/redis/data - cd redis-${VERSION} && gmake PREFIX=$serverPath/redis install + + CMD_MAKE=`which gmake` + if [ "$?" == "0" ];then + cd redis-${VERSION} && gmake PREFIX=$serverPath/redis install + else + cd redis-${VERSION} && make PREFIX=$serverPath/redis install + fi sed '/^ *#/d' redis.conf > $serverPath/redis/redis.conf if [ -d $serverPath/redis ];then