ninedocker/services/30-redis/misc/nine.sh

23 lines
438 B
Bash
Raw Normal View History

2024-07-24 16:11:40 +02:00
#!/bin/bash
function upredis {
if [[ $REDIS_ACTIVATE == 1 && $REDIS_LOCAL == 1 ]]
then
Title "REDIS"
EchoVert "CONTAINER"
upservice $REDIS_SERVICE_NAME
Echo
fi
}
function destroyredis(){
if [[ $REDIS_LOCAL == 1 ]]
then
Title "DESTROY $REDIS_SERVICE_NAME"
stop $REDIS_SERVICE_NAME 1
docker-compose rm -s -v -f "$REDIS_SERVICE_NAME"
echo ""
fi
}