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 2021-01-06 19:21:36 -05:00 committed by Sunil Mohan Adapa
parent 8a3603cd5f
commit a9914128f3
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

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'])