mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
vagrant: Use id -g for finding a user's group.
On OSX, the user id and group id don't match. So while the previous code was always wrong, it produced incorrect output there. We can fix this by replacing `whoami` with `id -g` for finding the current user's group ID.
This commit is contained in:
committed by
Tim Abbott
parent
1490653e42
commit
19990b06e9
@@ -126,7 +126,7 @@ something valuable to helping keep Zulip bug-free.
|
||||
|
||||
- When building the development environment using Vagrant and the LXC
|
||||
provider, if you encounter permissions errors, you may need to
|
||||
`chown -R 1000:$(whoami) /path/to/zulip` on the host before running
|
||||
`chown -R 1000:$(id -g) /path/to/zulip` on the host before running
|
||||
`vagrant up` in order to ensure that the synced directory has the
|
||||
correct owner during provision. This issue will arise if you run `id
|
||||
username` on the host where `username` is the user running Vagrant
|
||||
|
Reference in New Issue
Block a user