Merge branch 'master' of ssh://vvvvvvaria.org:12345/varia/etherdump

This commit is contained in:
manetta 2019-05-08 12:16:54 +02:00
commit 8171da6d6e
2 changed files with 9 additions and 5 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@
publish/ publish/
publish/* publish/*
index.html index.html
certbot.log cron.log

12
cron.sh
View File

@ -1,10 +1,14 @@
date >> cron.log
echo "cronjob started!" >> cron.log
echo "" > cron.log
# This will dump all the pads with a __PUBLISH__ tag into a folder "publish" as meta.json, txt, html and dhtml # This will dump all the pads with a __PUBLISH__ tag into a folder "publish" as meta.json, txt, html and dhtml
etherdump pull --all --meta --text --dhtml --publish __PUBLISH__ --publish-opt-in --pub ./publish --fix-names --no-raw-ext /usr/local/bin/etherdump pull --all --meta --text --dhtml --publish __PUBLISH__ --publish-opt-in --pub publish --fix-names --no-raw-ext
# This will make an index for the dump # This will make an index for the dump
etherdump index input \ /usr/local/bin/etherdump index input \
./publish/*.meta.json \ publish/*.meta.json \
--order lastedited \ --order lastedited \
--templatepath ./templates \ --templatepath templates \
--title "etherdump @ Varia" \ --title "etherdump @ Varia" \
--output index.html --output index.html