From def5e06a284b733fa254b441e7b7c96b6c395380 Mon Sep 17 00:00:00 2001 From: Pastilhas Date: Thu, 19 Nov 2020 13:43:15 +0000 Subject: [PATCH] [DOCKER][MAIL] Moved and modified `setup.sh` --- bin/setup_mail | 21 ----------- docker/mail/Dockerfile | 2 +- docker/mail/exec.sh | 22 ----------- .../rootfs/etc/mail/opendkim/TrustedHosts | 3 -- docker/mail/rootfs/usr/bin/start.sh | 15 +------- docker/mail/setup.sh | 37 +++++++++++++++++++ 6 files changed, 39 insertions(+), 61 deletions(-) delete mode 100644 bin/setup_mail delete mode 100644 docker/mail/exec.sh create mode 100644 docker/mail/setup.sh diff --git a/bin/setup_mail b/bin/setup_mail deleted file mode 100644 index 80ba34e7b2..0000000000 --- a/bin/setup_mail +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -printf "Domain root: " -read -r domain_root -printf "Subdomain (can be empty): " -read -r sub_domain - -if [ -z "$sub_domain" ] -then - domain="${domain_root}" -else - domain="${sub_domain}.${domain_root}" -fi - -cat > ./docker/mail/mail.env < mail.env <