From 3774f30d1d59522461f647d26753a7507b4d87cd Mon Sep 17 00:00:00 2001 From: dconry Date: Thu, 30 Mar 2017 15:38:45 -0400 Subject: [PATCH] Patch params for Ubuntu 16.04+. Postfix decided to disallow shlib_directory = daemon_directory in 3.0+. Ubuntu added an 'sbin' subdir to house the daemon_directory going forward. A better way might be to set the old default for all existing old Ubuntu versions & change the 'default' case to the new default. But this way works best for my existing environment. --- manifests/params.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index 7b80935..e8b82ee 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -37,7 +37,13 @@ $postfix_version = undef $command_directory = '/usr/sbin' $config_directory = '/etc/postfix' - $daemon_directory = '/usr/lib/postfix' + $daemon_directory = $::operatingsystemmajrelease ? { + '16.04' => '/usr/lib/postfix/sbin', + '16.10' => '/usr/lib/postfix/sbin', + '17.04' => '/usr/lib/postfix/sbin', + '17.10' => '/usr/lib/postfix/sbin', + default => '/usr/lib/postfix', + } $data_directory = '/var/lib/postfix' $manpage_directory = '/usr/share/man' $readme_directory = '/usr/share/doc/postfix'