From 05871cf7f770e8d4efcaaa69c873811edfaf3a62 Mon Sep 17 00:00:00 2001 From: varia server Date: Wed, 8 May 2019 00:53:03 +0200 Subject: [PATCH 1/4] adding cron.log to the .gitignore file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 42850f8..ee1e99c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ publish/ publish/* index.html certbot.log +cron.log From fbaa2f16ab950a82f1bbc72be2fa3fe4b087b553 Mon Sep 17 00:00:00 2001 From: varia server Date: Wed, 8 May 2019 01:11:02 +0200 Subject: [PATCH 2/4] removing certbot from the gitignore, woops --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index ee1e99c..a060d55 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,4 @@ publish/ publish/* index.html -certbot.log cron.log From 5aee9df884d1aaa7e57e963de590f890930762e2 Mon Sep 17 00:00:00 2001 From: varia server Date: Wed, 8 May 2019 01:11:21 +0200 Subject: [PATCH 3/4] added the full path to the etherdump installation to the cron --- cron.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cron.sh b/cron.sh index cc07124..08788e2 100755 --- a/cron.sh +++ b/cron.sh @@ -1,10 +1,10 @@ # 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 From 8480b200e8d5b5db2b6b5dcf6faca1bef058c16f Mon Sep 17 00:00:00 2001 From: varia server Date: Wed, 8 May 2019 01:24:45 +0200 Subject: [PATCH 4/4] added a note to the cron.log when the cron is running --- cron.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cron.sh b/cron.sh index 08788e2..9590713 100755 --- a/cron.sh +++ b/cron.sh @@ -1,3 +1,7 @@ +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 /usr/local/bin/etherdump pull --all --meta --text --dhtml --publish __PUBLISH__ --publish-opt-in --pub publish --fix-names --no-raw-ext