Comment 8 for bug 1660273

Revision history for this message
Stuart Bishop (stub) wrote : Re: `juju run` does not include /snap/bin in $PATH

/etc/profile is for login shells, which explains how jujud and thus the hook environment fails to pick it up.

From what I can tell, /snap/bin needs to be added to the PATH in /etc/environment on all Ubuntu images.

This will also fix similar bugs with cron and other daemons, which also won't have /snap/bin in their PATH.