home · contact · privacy
Set up sending mail server for URL catcher.
[config] / buster / setup_scripts / setup_dumpsite.sh
index 5a0bec3c1d9d7d1b1f15ba012745deb2ce2d405c..739f145dbff69af4fec8e4359ec10726bdd03c52 100755 (executable)
@@ -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.