[Bug 213132] Bypass mailer.conf activation prompt when installing mail/postfix non-interactively
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Sep 30 23:43:11 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213132
Bug ID: 213132
Summary: Bypass mailer.conf activation prompt when installing
mail/postfix non-interactively
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ohauer at FreeBSD.org
Reporter: xenophon+fbsdports at irtnog.org
Assignee: ohauer at FreeBSD.org
Flags: maintainer-feedback?(ohauer at FreeBSD.org)
Created attachment 175324
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=175324&action=edit
Patch to mail/postfix/files/pkg-install.in adding the "-t 0" test to the ask()
function
I'm having some trouble automating the deployment of Postfix on FreeBSD, and it
comes down to the mailer.conf activation prompt in the pkg-install script. The
behavior I want is for pkg-install to check whether standard input is open and
connected to a terminal, a la the "-t 0" argument to /bin/test. If standard
input is not connected to a terminal, then the "ask()" function in the script
should return the default value. This makes it possible to install Postfix
non-interactively. The attached patch implements this behavior, and I've
tested both cases, when stdin is a terminal and when it is not.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list