Skip to content

Commit 786871f

Browse files
committed
Change cli name to valkey-cli if used with valkey
1 parent f29ade3 commit 786871f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install.sh

+5
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ fi
122122
if [ "$REDIS" != "redis" ] ; then
123123
echo "Updating systemd service name to $REDIS.service"
124124
sed -i "s:redis.service:$REDIS.service:g" $SYSTEMD/smax-scripts.service
125+
126+
if [[ $REDIS != redis* ]] ; then
127+
echo "Updating cli to $REDIS-cli in scripts"
128+
sed -i "s:redis-cli:$REDIS-cli:g" $STAGE/bin/smax-*.sh
129+
fi
125130
fi
126131

127132
START_SMAX=1

0 commit comments

Comments
 (0)