upgrades: Disable searx during dist-upgrade
This change is targeted for bullseye / buster-backports.
Avoid high CPU usage due to uwsgi continuously restarting before searx config is upgraded.
Helps #1644 (closed).
Tests: Ran dist-upgrade for each case:
-
Without searx installed -> no log messages related to searx.
-
With searx installed but not enabled -> searx config is upgraded.
-
With searx installed and enabled -> searx is disabled, later config is upgraded, and searx is re-enabled. Searx page can be accessed at the end.
Signed-off-by: James Valleroy jvalleroy@mailbox.org
Edited by James Valleroy