I've noticed that cronjobs using "lxc" commands don't work on servers with LXD installed from a snap package.

It turned out that:

# which lxc
/snap/bin/lxc


Which is not in a $PATH when executing via cron.

In other words - lxc binary is in a $PATH when installed from a deb package, but is not when installed from a snap package.


Is it a bug, a feature?


Tomasz Chmielewski
https://lxadm.com
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to