Skip to content

Commit

Permalink
snapcraft/commands: Don't take dirname of minio.path
Browse files Browse the repository at this point in the history
Signed-off-by: Max Asnaashari <[email protected]>
  • Loading branch information
masnax committed Feb 14, 2024
1 parent b1517cf commit dcf7265
Showing 1 changed file with 1 addition and 1 deletion.
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 dcf7265

Please sign in to comment.