Redis Version

This commit is contained in:
Kamil Porembinski 2016-07-04 07:51:55 +02:00
parent 8225e90c0d
commit 5746d18a82

View File

@ -1,2 +1,3 @@
UserParameter=redis[*],redis-cli info | grep $1":" | cut -d ':' -f 2
UserParameter=redis-ping,redis-cli ping | grep -c PONG
UserParameter=redis.version, redis-server --version | cut -d " " -f 3 | cut -d "=" -f 2