tripleo-image-elements/elements/postfix/pre-install.d/59-postfix
Chris Krelle 2573766ea9 Improve postfix element.
Changes 09-* files to 59-* to ensure they run after OCA.
Adds templates for main.cf and mailname to allow configuration of hostname
and delay_wait_time. The current code has the DIB hostname from chroot
at build time in these files preventing local mail delivery.

Fixes bug 1195931
Authored-by: Chris Krelle <nobodycam@gmail.com>
Change-Id: I62badfddac3f6c29f484790c8ebf58f282d597c9
2013-07-03 14:40:58 -07:00

11 lines
316 B
Bash
Executable File

#!/bin/bash
set -eux
# set some defaults for Debian based installs
if [ -f /etc/debian_version ]; then
debconf-set-selections <<< "postfix postfix/main_mailer_type string '${DIB_POSTFIX_INSTALL_TYPE:-Local Only}'"
else
echo "Postfix element currently supports Debian based environments only."
exit 1
fi