Skip to content

Commit

Permalink
Merge pull request canonical#328 from masnax/remove-minio
Browse files Browse the repository at this point in the history
Expect directory for `minio.path`
  • Loading branch information
tomponline authored Feb 14, 2024
2 parents b748fed + dcf7265 commit 9ff1445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ description: |-
- openvswitch.external: Use the system's OVS tools (ignores openvswitch.builtin) [default=false]
- ovn.builtin: Use snap-specific OVN configuration [default=false]
- ui.enable: Enable the web interface [default=true]
- minio.path: Path to the directory containing the minio and mc binaries to use with LXD [default=""]

For system-wide configuration of the CLI, place your configuration in
/var/snap/lxd/common/global-conf/ (config.yml and servercerts)
Expand Down
2 changes: 1 addition & 1 deletion snapcraft/commands/daemon.start
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ fi
# Note: Snaps disallow running binaries from certain paths (for example paths under home directories).
# These will show `permission denied` when trying to run the executable.
if [ -n "${minio_path:-""}" ] ; then
minio_dir="$(dirname "/var/lib/snapd/hostfs${minio_path}")"
minio_dir="/var/lib/snapd/hostfs${minio_path}"
export PATH="${PATH}:${minio_dir}"
fi

Expand Down

0 comments on commit 9ff1445

Please sign in to comment.