]> code.communitydata.science - covid19.git/commitdiff
Merge pull request #20 from makoshark/master master gh-cdsc/master
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 7 Apr 2020 21:45:05 +0000 (14:45 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 21:45:05 +0000 (14:45 -0700)
bug fix: change to the correct working directory before running cron jobs

cron-wikipedia_revisions.sh [changed mode: 0644->0755]
cron-wikipedia_views.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 5ba02ed..f836c47
@@ -1,5 +1,8 @@
 #!/bin/bash -x
 
+WORKING_DIR="/home/SOC.NORTHWESTERN.EDU/bmh1867/covid19"
+cd $WORKING_DIR
+
 TZ="UTC"
 date_string=$(date +%Y%m%d)
 
@@ -15,3 +18,4 @@ mv wikipedia/data/${revs_tsv} /var/www/covid19/wikipedia
 revs_json="digobs_covid19-wikipedia-enwiki_revisions-${date_string}.json"
 xz wikipedia/data/${revs_json}
 mv wikipedia/data/${revs_json}.xz /var/www/covid19/wikipedia
+
old mode 100644 (file)
new mode 100755 (executable)
index 4afe380..bb2f621
@@ -1,5 +1,8 @@
 #!/bin/bash -x
 
+WORKING_DIR="/home/SOC.NORTHWESTERN.EDU/bmh1867/covid19"
+cd $WORKING_DIR
+
 TZ="UTC"
 date_string=${OVERRIDE_DATE_STRING:-$(date +%Y%m%d)}
 

Community Data Science Collective || Want to submit a patch?