From 786871f0edcc3913b6eb31dbf28dba3e0770bcfe Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Fri, 20 Dec 2024 12:14:27 +0100 Subject: [PATCH] Change cli name to valkey-cli if used with valkey --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index dd8e893..df77cad 100755 --- a/install.sh +++ b/install.sh @@ -122,6 +122,11 @@ fi if [ "$REDIS" != "redis" ] ; then echo "Updating systemd service name to $REDIS.service" sed -i "s:redis.service:$REDIS.service:g" $SYSTEMD/smax-scripts.service + + if [[ $REDIS != redis* ]] ; then + echo "Updating cli to $REDIS-cli in scripts" + sed -i "s:redis-cli:$REDIS-cli:g" $STAGE/bin/smax-*.sh + fi fi START_SMAX=1