Hi folks,

I ran across a problem when installing postfix 2.9.5 on Solaris 10 and
11. If there is a pre-existing main.cf on the system then the "make
install" step will re-use this, instead of using the settings
contained in the new 2.9.5 code tree.

It makes installing a new version problematic as you don't expect that
sort of behaviour, old configs polluting new code. It's billed as a
"transition aid" but it's annoying when you go out of your way to
configure the postfix source tree to use other settings.

Thanks,
Mark.

postfix-install:
CONFIG_PARAMS="command_directory daemon_directory data_directory \
html_directory mail_owner mailq_path  manpage_directory newaliases_path \
queue_directory readme_directory sendmail_path setgid_group"

# Extract parameter settings from the installed main.cf file.

test -f $CONFIG_DIRECTORY/main.cf && {
    for name in $CONFIG_PARAMS sample_directory
    do
    eval junk=\$$name
    case "$junk" in
    "") eval unset $name;;
    esac
    eval : \${$name=\`bin/postconf -c $CONFIG_DIRECTORY -h $name\`} ||
        exit 1
    done
}

host:/var/tmp/postfix-2.9.5 root# sh -x postfix-install
+ umask 022
+ 
PATH=/bin:/usr/bin:/usr/sbin:/usr/etc:/sbin:/etc:/usr/contrib/bin:/usr/gnu/bin:/usr/ucb:/usr/bsd
+ SHELL=/bin/sh
[...]
+ echo Please specify the final destination directory for installed
Postfix configuration files.
Please specify the final destination directory for installed Postfix
configuration files.
+ eval echo '$n' 'config_directory: [$config_directory]\  $c'
+ echo config_directory: '[/usr/local/etc/postfix] ' '\c'
config_directory: [/usr/local/etc/postfix]  + read ans
+ break
+ install_root=''
+ test -z ''
+ CONFIG_DIRECTORY=/usr/local/etc/postfix
+ grep setgid_group /usr/local/etc/postfix/main.cf
+ 1> /dev/null 2>& 1
+ CONFIG_PARAMS='command_directory daemon_directory data_directory
html_directory mail_owner mailq_path  manpage_directory
newaliases_path queue_directory readme_directory sendmail_path
setgid_group'
+ test -f /usr/local/etc/postfix/main.cf
+ eval junk='$command_directory'
+ junk=''
+ eval unset command_directory
+ unset command_directory
+ eval : '${command_directory=`bin/postconf' -c /usr/local/etc/postfix
-h 'command_directory`}'
+ bin/postconf -c /usr/local/etc/postfix -h command_directory
+ : /usr/local/sbin
+ eval junk='$daemon_directory'
+ junk=''
+ eval unset daemon_directory
+ unset daemon_directory
+ eval : '${daemon_directory=`bin/postconf' -c /usr/local/etc/postfix
-h 'daemon_directory`}'
+ bin/postconf -c /usr/local/etc/postfix -h daemon_directory
+ : sourced_from_legacy_file
+ eval junk='$data_directory'
+ junk=''
+ eval unset data_directory
+ unset data_directory
+ eval : '${data_directory=`bin/postconf' -c /usr/local/etc/postfix -h
'data_directory`}'
+ bin/postconf -c /usr/local/etc/postfix -h data_directory
+ : /usr/local/var/postfix
+ eval junk='$html_directory'
+ junk=''
+ eval unset html_directory
+ unset html_directory
+ eval : '${html_directory=`bin/postconf' -c /usr/local/etc/postfix -h
'html_directory`}'
+ bin/postconf -c /usr/local/etc/postfix -h html_directory

Reply via email to