docs: Note Hugo as Snap package can write only inside $HOME

Backported from https://hugodocs.info/getting-started/installing/

Fixes #3143
This commit is contained in:
Anthony Fok 2017-03-13 18:11:57 -06:00
parent 042f8fca03
commit b156ef2712

View file

@ -56,11 +56,14 @@ you need to install the Python-based Pygments program. The procedure is outlined
Upgrading Hugo is as easy as downloading and replacing the executable youve Upgrading Hugo is as easy as downloading and replacing the executable youve
placed in your `PATH`. placed in your `PATH`.
## Installing from snap ## Snap package for Hugo
In any of the [Linux distributions that support snaps](http://snapcraft.io/docs/core/install): In any of the [Linux distributions that support snaps](http://snapcraft.io/docs/core/install):
$ snap install hugo snap install hugo
> Note: Hugo-as-a-snap can write only inside the users `$HOME` directory—and gvfs-mounted directories owned by the user—because of Snaps confinement and security model.
> More information is also available [in this related GitHub issue](https://github.com/spf13/hugo/issues/3143).
## Installing from source ## Installing from source