From 61da96c3cf39b520d21cf30d6c06dc85835f2c7d Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 27 Apr 2020 22:38:15 +0200 Subject: [PATCH] Fix. --- buster/setup_scripts/setup_dumpsite.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2