This is more of an FYI. If https://github.com/kandji-inc/support/blob/e631d21a71cdcba65e69aff77388743301f9548a/Scripts/InstallHomebrew.zsh is run before a user is created, /opt/homebrew will be owned by root, and unusable by other users. It would be ideal (IMO) if the script errored instead of installing for root, which is probably never(?) desirable.
The fix on my end is to ensure the script only runs after the user has been created.
This is more of an FYI. If https://github.com/kandji-inc/support/blob/e631d21a71cdcba65e69aff77388743301f9548a/Scripts/InstallHomebrew.zsh is run before a user is created,
/opt/homebrewwill be owned byroot, and unusable by other users. It would be ideal (IMO) if the script errored instead of installing for root, which is probably never(?) desirable.The fix on my end is to ensure the script only runs after the user has been created.