]> code.communitydata.science - covid19.git/commitdiff
updated script to ensure the correct working dir
authorBenjamin Mako Hill <mako@atdot.cc>
Tue, 7 Apr 2020 21:39:58 +0000 (16:39 -0500)
committerBenjamin Mako Hill <mako@atdot.cc>
Tue, 7 Apr 2020 21:39:58 +0000 (16:39 -0500)
cron-wikipedia_revisions.sh
cron-wikipedia_views.sh

index 5ba02ed43d92212c9124542b37c32a7362f1c099..f836c47efc1f05f9b3eafdf82b1a1e4b861b3474 100755 (executable)
@@ -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
+
index 4afe380ee1a75902e5e019061924c52dee6d4c78..bb2f621335e1cdb8febb93d10e654714d156750b 100755 (executable)
@@ -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?