Skip to content

Instantly share code, notes, and snippets.

View phillxnet's full-sized avatar

Philip Guyton phillxnet

View GitHub Profile
#!/bin/bash
HOST=$(hostname)
# preconfigure the postfix install questions via debconf-set-selections
# debconf-set-selections takes four values per line, one line per question
# package name, question name, type of value requested(eg boolean), answer
function install_postfix() {
echo | sudo debconf-set-selections <<__EOF
postfix postfix/root_address string