set -e
if [ "$#" -ne 4 ]; then
- echo 'Need domain name (choose wisely!) and mail and old server and repos source ("local" or "remote"?).'
+ echo 'Need domain name and mail and old server and repos source ("local" or "remote"?).'
false
fi
if [ ! "$4" = "local" ] && [ ! "$4" = "remote" ]; then
old_server="$3"
repos_source="$4"
+read -p"Only continue if hostname is not domain of url_catcher's target mail address, else abort!" ignore
+
# 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