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

23 lines
498 B
Bash
Raw Normal View History

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