From 57714e0b64e2e6ecf31b6c4c5f707d3fa6be8810 Mon Sep 17 00:00:00 2001 From: systers Date: Fri, 17 Mar 2023 18:18:41 +0100 Subject: [PATCH] reading the settings.json from a non-public folder now, after Michael's email --- cron.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cron.sh b/cron.sh index d525f43..d48960c 100644 --- a/cron.sh +++ b/cron.sh @@ -3,12 +3,16 @@ 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 -/usr/local/bin/etherdump pull --all --meta --text --dhtml --publish __PUBLISH__ --publish-opt-in --pub publish --fix-names --no-raw-ext +/srv/etherdump/bin/etherdump pull --all --meta --dhtml --html --publish __PUBLISH__ --publish-opt-in --pub publish --fix-names --no-raw-ext --padinfo /srv/etherdump-settings/settings.json # This will make an index for the dump -/usr/local/bin/etherdump index input \ +/srv/etherdump/bin/etherdump index input \ publish/*.meta.json \ --order lastedited \ + --reverse \ --templatepath templates \ --title "Varia notes and dispatches" \ - --output index.html + --output index.html | tee -a etherpump.log + +# This will save a pad.css file every hour from the pad https://pad.vvvvvvaria.org/pad.css +# cp publish/pad.css /srv/etherpad-lite/src/altetherpad/src/static/skins/no-skin/pad.css