ninedocker/services/90-adminer/misc/nine.sh

25 lines
460 B
Bash
Raw Normal View History

2024-07-24 16:11:40 +02:00
#!/bin/bash
function upadminer {
if [[ $ADMINER_ACTIVATE == 1 && $ADMINER_LOCAL == 1 ]]
then
Title "ADMINER"
EchoVert "CONTAINER"
upservice $ADMINER_SERVICE_NAME
Echo
fi
}
function destroyadminer(){
if [[ $ADMINER_LOCAL == 1 ]]
then
Title "DESTROY $ADMINER_SERVICE_NAME"
stop $ADMINER_SERVICE_NAME 1
docker-compose rm -s -v -f "$ADMINER_SERVICE_NAME"
echo ""
fi
}