[lxc-users] deb -> snap usage issues

Stéphane Graber stgraber at ubuntu.com
Fri Mar 30 16:43:26 UTC 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20180330/616fcdc8/attachment.sig>


More information about the lxc-users mailing list