Browse Source

Give the cron.sh further attention

main
Luke Murphy 4 years ago
parent
commit
91bfdebf72
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 18
      cron.sh

18
cron.sh

@ -1,6 +1,5 @@
echo "Pulling pads now ..."
echo "Pulling pads..."
# This will pump all the pads with a __PUBLISH__ tag into a folder "publish" as meta.json, txt, html and dhtml
etherpump pull \
--meta \
--html \
@ -12,11 +11,11 @@ etherpump pull \
--fix-names \
--connection 5 \
--force \
# rr-minimal-viable-learning # Note(decentral1se): uncomment for single pad
# rr-minimal-viable-learning # Note(decentral1se): uncomment for single pad pull
echo "Making the Etherpump index now ..."
echo "Building the etherpump index..."
# This will make an index for the dump
# Note(decentral1se): replace "p/*.meta.json" with "rr-minimal-viable-learning.meta.json" for single pad index
etherpump index \
input \
p/*.meta.json \
@ -24,12 +23,7 @@ etherpump index \
--title "Notes, __MAGICWORDS__, readers & more ..." \
--output index.html
# tmp
# rm -r ../publish/
# mv publish ../
# mv index.html ../
echo "Done!"
# 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
echo "Done!"

Loading…
Cancel
Save