motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.94k stars 650 forks source link

init: adjust meyectl path if needed #3011

Open MichaIng opened 3 months ago

MichaIng commented 3 months ago

On Arch Linux, pip seems to not install Python modules/executables to /usr/local/bin but /usr/bin instead. In such cases, search the meyectl path in PATH and adjust the systemd service. Print an error if it could not be found at all.

Fixes: https://github.com/motioneye-project/motioneye/issues/3005