From: Christian Heller Date: Thu, 9 Apr 2020 22:04:16 +0000 (+0200) Subject: Add dumpsite index. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/todo?a=commitdiff_plain;h=120f3d7a0a155fd592a9c61be2bdf474b46aaae0;p=config Add dumpsite index. --- 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 @@ + + +Zum Blog? 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