summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcron-jobs/update-web-db7
1 files changed, 7 insertions, 0 deletions
diff --git a/cron-jobs/update-web-db b/cron-jobs/update-web-db
index 8760fc6..6ced4c1 100755
--- a/cron-jobs/update-web-db
+++ b/cron-jobs/update-web-db
@@ -5,6 +5,8 @@
# setup paths
SPATH="/srv/http/archweb"
+ENVPATH="/srv/http/archweb-env/bin/activate"
+
# having "more important repos" last should make [core] trickle to the top of
# the updates list each hour rather than being overwhelmed by big [extra] and
# [community] updates
@@ -24,6 +26,11 @@ renice +5 -p $$ > /dev/null
echo "$cmd: Updating DB at $(date)" >> "${LOGOUT}"
+# source our virtualenv if it exists
+if [ -f "$ENVPATH" ]; then
+ . "$ENVPATH"
+fi
+
case "$cmd" in
update-web-db)
dbfileext="${DBEXT}"