On Fri, Mar 30, 2018 at 11:46:10PM +0900, Tomasz Chmielewski wrote: > 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?
I've noticed that before too, in some cases the PATH doesn't match the normla interactive PATH... I'd say this is a bug and should be reported against snapd as that's what updates your PATH with snaps. -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
signature.asc
Description: PGP signature
_______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users