25 lines
460 B
Bash
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
|
||
|
}
|