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

23 lines
498 B
Bash

#!/bin/bash
function upfakesmtp {
if [[ $FAKESMTP_ACTIVATE == 1 && $FAKESMTP_LOCAL == 1 ]]
then
Title ${FAKESMTP_SERVICE_NAME^^}
EchoVert "CONTAINER"
upservice ${FAKESMTP_SERVICE_NAME}
Echo
fi
}
function destroyfakesmtp {
if [[ $FAKESMTP_LOCAL == 1 ]]
then
Title "DESTROY ${FAKESMTP_SERVICE_NAME}"
stop ${FAKESMTP_SERVICE_NAME} 1
docker-compose rm -s -v -f "${FAKESMTP_SERVICE_NAME}"
echo ""
fi
}