This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-maat/test/reset_redis4maat.sh
2018-12-23 18:18:19 +06:00

12 lines
405 B
Bash

#!/bin/sh
host="127.0.0.1"
port="6379"
db="0"
echo "Reseting Redis For Maat..."
redis-cli -h $host -p $port -n $db GET MAAT_VERSION
redis-cli -h $host -p $port -n $db FLUSHALL
redis-cli -h $host -p $port -n $db SET MAAT_VERSION "0"
redis-cli -h $host -p $port -n $db SET MAAT_PRE_VER "0"
redis-cli -h $host -p $port -n $db SET SEQUENCE_REGION "1"
redis-cli -h $host -p $port -n $db SET SEQUENCE_GROUP "1"