upgrades: Use full path to searx action script

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2021-01-10 20:43:59 -08:00
1 parent 8a3603cd5f
commit a9914128f3
1 file changed
+2 -1
+2 -1
View File
@@ -431,7 +431,8 @@ def _perform_dist_upgrade():
# If searx is installed, update search engines list.
if pathlib.Path('/etc/searx/settings.yml').exists():
print('Updating searx search engines list...', flush=True)
subprocess.run(['./searx', 'setup'], check=True)
subprocess.run(['/usr/share/plinth/actions/searx', 'setup'],
check=True)
print('Running apt autoremove...', flush=True)
run_apt_command(['autoremove'])