Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2016 23:43:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 213132] Bypass mailer.conf activation prompt when installing mail/postfix non-interactively
Message-ID:  <bug-213132-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213132

            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@FreeBSD.org
          Reporter: xenophon+fbsdports@irtnog.org
          Assignee: ohauer@FreeBSD.org
             Flags: maintainer-feedback?(ohauer@FreeBSD.org)

Created attachment 175324
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D175324&action=
=3Dedit
Patch to mail/postfix/files/pkg-install.in adding the "-t 0" test to the as=
k()
function

I'm having some trouble automating the deployment of Postfix on FreeBSD, an=
d 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 scri=
pt
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213132-13>