X-Git-Url: https://plomlompom.com/repos/?p=config;a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_dumpsite.sh;h=739f145dbff69af4fec8e4359ec10726bdd03c52;hp=5a0bec3c1d9d7d1b1f15ba012745deb2ce2d405c;hb=c4c94ddd203e70460c70276f9ed53956c59ac43b;hpb=7975ff6d2dc1459a7047494d440d19f5a65cee14 diff --git a/buster/setup_scripts/setup_dumpsite.sh b/buster/setup_scripts/setup_dumpsite.sh index 5a0bec3..739f145 100755 --- a/buster/setup_scripts/setup_dumpsite.sh +++ b/buster/setup_scripts/setup_dumpsite.sh @@ -11,6 +11,8 @@ mail="$2" old_server="$3" # Install configs, set up firewall. +echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections +echo "postfix postfix/mailname string $(hostname -f)" | debconf-set-selections config_tree_prefix="${HOME}/config/buster" ./install_for_target.sh web dumpsite ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" web dumpsite @@ -68,8 +70,9 @@ su -lc "git clone https://github.com/plomlompom/url-catcher.git" plom # FIXME: we should not depend on a GitHub repo; # instead, set up like plomlombot repo (with post-recieve hook) su -lc "cd url-catcher && ln -s ../blog/captchas/linkable/ captchas" plom +cp "${config_tree_prefix}/other_files/url-catcher_customizations.json" /home/plom/url-catcher/customizations.json systemctl enable url_catcher.service -service url_catcher startc +service url_catcher start # NOTE: fix metadata/article_tmpl referencing dump.plomlompom.com explicitely # Prepare NGINX.