ninedocker/services/90-adminer/misc/nine.sh
2024-07-24 14:11:40 +00:00

25 lines
460 B
Bash

#!/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
}