using /usr/bin/mail on Ubuntu 18.04
Keith
keith at caramail.com
Tue Jun 22 00:20:18 UTC 2021
On 6/21/21 12:28 PM, Jerry Geis wrote:
> Thanks Keith how do I make that part of my dpkg package ?
> I have :
> echo "Pre-Depends: apache2, apache2-suexec-pristine, sendmail,
> sendmail-cf, mailutils, nullmailer"
>
> I would like the user installing to not have to know about the
> DEBIAN_FRONTEND - how can I just include that?
>
> Thank you!
>
> Jerry
>
>
> On Sun, Jun 20, 2021 at 1:26 PM Keith <keith at caramail.com
> <mailto:keith at caramail.com>> wrote:
>
> On 6/19/21 3:08 PM, Jerry Geis wrote:
>
> [SNIP]
>
> >
> > Thanks nullmailer has helped. When installing it with "apt -y
> install
> > nullmailer" it prompts for two things-
> > how do I tell the installer to just accept the defaults ? For
> > future automated installs.
> > Thanks
> >
> > Jerry
> >
>
> # DEBIAN_FRONTEND=noninteractive apt -y install <packagename>
>
> The above command will install a package with default config values.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com <mailto:ubuntu-users at lists.ubuntu.com>
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> <https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>
>
For automated installs you'd set the variable in a script, exporting it
depending on using other scripts, or multiple apt or dpkg commands. It's
a big hammer, so be judicious in wielding it.
You might also look at preseeding settings of debconf managed packages
like nullmailer if you wish to use different settings from the defaults.
--
Keith
More information about the ubuntu-users
mailing list