From 8018e9c8478ff047d24c358141746a196c8de965 Mon Sep 17 00:00:00 2001 From: Akuario Date: Mon, 1 Aug 2016 11:17:57 +0200 Subject: [PATCH] Added logs for table-map config files --- postfix/start.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postfix/start.sh b/postfix/start.sh index c8af059c..17c7e43b 100755 --- a/postfix/start.sh +++ b/postfix/start.sh @@ -16,12 +16,15 @@ else fi # Include table-map files -if [ "$(ls -A /config/*.map)" ]; then +if ls -A /config/*.map 1> /dev/null 2>&1; then cp /config/*.map /etc/postfix/ postmap /etc/postfix/*.map rm /etc/postfix/*.map chown root:root /etc/postfix/*.db chmod 0600 /etc/postfix/*.db + echo "Loaded 'map files'" +else + echo "No extra map files loaded because optional '/config/*.map' not provided." fi # Actually run Postfix