home · contact · privacy
Add dumpsite index.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 9 Apr 2020 22:04:16 +0000 (00:04 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 9 Apr 2020 22:04:16 +0000 (00:04 +0200)
buster/other_files/dumpsite_index.html [new file with mode: 0644]
buster/setup_scripts/setup_dumpsite.sh

diff --git a/buster/other_files/dumpsite_index.html b/buster/other_files/dumpsite_index.html
new file mode 100644 (file)
index 0000000..0c2093f
--- /dev/null
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<a href="blog">Zum Blog?</a>
index 739f145dbff69af4fec8e4359ec10726bdd03c52..ec144554adb7389277533cb1b2004ad4d49a246a 100755 (executable)
@@ -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