X-Git-Url: https://plomlompom.com/repos/test.html?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_dumpsite.sh;h=c2592d83f4da756c40b236b7e1c4d7b96a90a249;hb=3ddd30bea0bf9f7f966b3fed8d2cb455a148092f;hp=0e6cdc60322b1ea8224de38f5cc7a6c7d983d812;hpb=c3108592928149ebe3ef4ee76d979b8dd96a3c54;p=config
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