From: Christian Heller Date: Mon, 27 Apr 2020 20:38:15 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/static/task?a=commitdiff_plain;h=61da96c3cf39b520d21cf30d6c06dc85835f2c7d;p=config Fix. --- diff --git a/buster/setup_scripts/setup_dumpsite.sh b/buster/setup_scripts/setup_dumpsite.sh index 0e6cdc6..c2592d8 100755 --- a/buster/setup_scripts/setup_dumpsite.sh +++ b/buster/setup_scripts/setup_dumpsite.sh @@ -2,7 +2,7 @@ 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 @@ -14,9 +14,10 @@ mail="$2" 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