From 1562942c6a01f2eda3bf21754eb818b522c5ae56 Mon Sep 17 00:00:00 2001
From: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
Date: Mon, 13 May 2024 17:36:04 +0200
Subject: [PATCH] maintenance.sh: auto_update_app_source script should run
 inside a venv ? (#2333)

---
 maintenance.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maintenance.sh b/maintenance.sh
index f7dc944..dbf9a52 100644
--- a/maintenance.sh
+++ b/maintenance.sh
@@ -68,7 +68,7 @@ function autoupdate_app_sources()
     log=$workdir/app_sources_auto_update.log
     date >> $log
     git_pull_and_update_cron_and_restart_services_if_needed
-    python3 tools/autoupdate_app_sources/autoupdate_app_sources.py \
+    tools/autoupdate_app_sources/venv/bin/python3 tools/autoupdate_app_sources/autoupdate_app_sources.py \
         --edit --commit --pr --paste -j1 \
     &> $log || sendxmpppy "[appsourcesautoupdate] App sources auto-update failed miserably"
 }