Browse Source

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

master
manetta 5 years ago
parent
commit
8171da6d6e
  1. 2
      .gitignore
  2. 12
      cron.sh

2
.gitignore

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

12
cron.sh

@ -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
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
etherdump index input \
./publish/*.meta.json \
/usr/local/bin/etherdump index input \
publish/*.meta.json \
--order lastedited \
--templatepath ./templates \
--templatepath templates \
--title "etherdump @ Varia" \
--output index.html

Loading…
Cancel
Save