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