23 lines
448 B
Bash
23 lines
448 B
Bash
#!/bin/bash
|
|
|
|
function upmta {
|
|
if [[ $MTA_ACTIVATE == 1 && $MTA_LOCAL == 1 ]]
|
|
then
|
|
Title ${MTA_SERVICE_NAME^^}
|
|
EchoVert "CONTAINER"
|
|
upservice ${MTA_SERVICE_NAME}
|
|
Echo
|
|
fi
|
|
}
|
|
|
|
function destroymta {
|
|
if [[ $MTA_LOCAL == 1 ]]
|
|
then
|
|
Title "DESTROY ${MTA_SERVICE_NAME}"
|
|
|
|
stop ${MTA_SERVICE_NAME} 1
|
|
docker-compose rm -s -v -f "${MTA_SERVICE_NAME}"
|
|
echo ""
|
|
fi
|
|
}
|