#!/bin/sh
set -e
-set -x
if [ "$#" -ne 3 ]; then
- echo 'Need domain name and mail and old server.'
+ echo 'Need domain name (choose wisely!) and mail and old server.'
false
fi
domain="$1"
# Install configs, set up firewall.
echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
+# TODO: do we really want hostname as mailname?
echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections
config_tree_prefix="${HOME}/config/buster"
./install_for_target.sh web dumpsite