Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Yet another Digital Ocean tweak

  • Loading branch information...
commit 4f2017d92f781342246bbf42b9e5d7ae03ab8bde 1 parent 630cd08
@mjradwin mjradwin authored
Showing with 4 additions and 1 deletion.
  1. +3 −0  cron.d/hebcal
  2. +1 −1  hebcal.com/bin/Makefile
View
3  cron.d/hebcal
@@ -12,6 +12,9 @@ HEBCAL_BIN=/home/hebcal/local/bin
0 0 1 * * www-data mv -f /tmp/mradwin-cache /tmp/mradwin-cache.$$ && rm -rf /tmp/mradwin-cache.$$
0 0 1 * * www-data mv -f /tmp/www-data-cache /tmp/www-data-cache.$$ && rm -rf /tmp/www-data-cache.$$
+# every hour, prune cached .ics files that are more than 48 hours old
+10 * * * * www-data nice find /var/www/export -type f -name '*.ics' -mtime +1 -delete
+
# update static page at the beginning of each month
0 0 1 * * mradwin curl -o - 'http://www.hebcal.com/hebcal/?bogus=bogus' | perl -pi -e 's/\?bogus=bogus//g' > $HEBCAL_WEB/hebcal/default.new && mv -f $HEBCAL_WEB/hebcal/default.new $HEBCAL_WEB/hebcal/default.html
View
2  hebcal.com/bin/Makefile
@@ -4,7 +4,7 @@ XML_ALIYAH = $(XMLDIR)/aliyah.xml
XML_FESTIVAL = $(XMLDIR)/festival.xml
CITIES_TXT = $(XMLDIR)/cities.txt
CITIES_JSON = ../etc/cities.js
-SITE_PERL = ../../../local/share/perl/site_perl
+SITE_PERL = /home/hebcal/local/share/perl/site_perl
SEDROT = ../sedrot
DBDIR = ../hebcal
HOLIDAYS = ../holidays
Please sign in to comment.
Something went wrong with that request. Please try again.