@cmm11 I added this file /usr/lib/systemd/system/flexget.service with the intention of reducing the running permissions for users who use flexget-webui. Users using the webui can directly run command within the webui. If you have to run these commands from the command line, traditional su cannot do it because the shell of the flexget user is /usr/bin/nologin and login is prohibited.
-
You can run
sudo -u flexget flexget -c /var/lib/flexget/config.yml execute --task task_name -
Or You can use the gosu that I just packaged to implement:
sudo gosu <user>:<group> <command>, for example:sudo gosu flexget:flexget flexget -c /var/lib/flexget/config.yml execute --task task_name.
If you are using /usr/lib/systemd/system/flexget.service, you can add a alias in your shell rc file: alias flexget="sudo -u flexget /usr/bin/flexget -c /var/lib/flexget/config.yml or alias flexget="sudo gosu flexget:flexget /usr/bin/flexget -c /var/lib/flexget/config.yml".
