From 120f3d7a0a155fd592a9c61be2bdf474b46aaae0 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Fri, 10 Apr 2020 00:04:16 +0200
Subject: [PATCH] Add dumpsite index.

---
 buster/other_files/dumpsite_index.html |  3 +++
 buster/setup_scripts/setup_dumpsite.sh | 14 +++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)
 create mode 100644 buster/other_files/dumpsite_index.html

diff --git a/buster/other_files/dumpsite_index.html b/buster/other_files/dumpsite_index.html
new file mode 100644
index 0000000..0c2093f
--- /dev/null
+++ b/buster/other_files/dumpsite_index.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<a href="blog">Zum Blog?</a>
diff --git a/buster/setup_scripts/setup_dumpsite.sh b/buster/setup_scripts/setup_dumpsite.sh
index 739f145..ec14455 100755
--- a/buster/setup_scripts/setup_dumpsite.sh
+++ b/buster/setup_scripts/setup_dumpsite.sh
@@ -57,23 +57,23 @@ su -lc "ln -s /home/plom/zettel /var/www-dump/zettel" plom
 su -lc "git clone --mirror ${old_server}:blog.git" plom
 cp "${config_tree_prefix}/other_files/blog_hook_post-receive" /home/plom/blog.git/hooks/post-receive
 su -lc "git clone ~/blog.git" plom
-# FIXME: we should not depend on a GitHub repo;
-# instead, set up like plomlombot repo (with post-recieve hook)
-su -lc "git clone https://github.com/plomlompom/redo-blog.git" plom
+# TODO: set up like plomlombot repo (with post-recieve hook)?
+su -lc "git clone https://plomlompom.com/repos/clone/redo-blog" plom
 su -lc "cd redo-blog && ./add_dir.sh ~/blog" plom
 su -lc "cd blog && redo" plom
 su -lc "ln -s /home/plom/blog/public /var/www-dump/blog" plom
 # NOTE: Locally, to update content, clone blog.git, not blog.
 
 # Set up url catcher.
-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)
+# TODO: set up like plomlombot repo (with post-recieve hook)?
+su -lc "git clone https://plomlompom.com/repos/clone/url-catcher" plom
 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 start
-# NOTE: fix metadata/article_tmpl referencing dump.plomlompom.com explicitely
+
+# Set up index.html
+cp "${config_tree_prefix}/other_files/dumpsite_index.html" /var/www-dump/index.html
 
 # Prepare NGINX.
 sed -i "s/REPLACE_fqdn_ECALPER/${domain}/g" /etc/nginx/sites-available/dumpsite.nginx
-- 
2.30.2