From f26b978d89eb54c206fa3594bab84b7c5a59f2fa 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..87486a3 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