New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installer support for OS X 10.11 (El Capitan) #59
Conversation
…use of the newly introduced System Integrity Protection in OS X 10.11
… reference the new path in /usr/local/bin
As noted in another Pull Request, I'm not sure if AdRoll still wants to maintain this project. I've forked it over at https://github.com/sanctuarygroup/hologram - can you please move this change there and I'll provide commentary? |
Can this be merged? Now that El Capitan is out, this breaks hologram in the common case. |
will it do the right thing if you have a previous version installed and install this, or will you end up with two binaries? |
@walterking Just added to the postinstall.sh to remove the previous binaries if they exist under |
Installer support for OS X 10.11 (El Capitan)
Thanks! |
@@ -2,13 +2,30 @@ | |||
# Remove the previous version of Hologram. | |||
launchctl unload -w /Library/LaunchDaemons/com.adroll.hologram.plist | |||
|
|||
# Remove previous (old location) hologram binaries if they exist | |||
if [ -f "/usr/bin/hologram-boot" ]; then | |||
rm /usr/bin/hologram-boot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not work on some systems. I would rather go for `rm -f'.
El Capitan introduces System Integrity Protection which does not allow writing out to certain "protected" directories. Because of the this the installer throws a warning and does not complete
The change is minor though we may want to discuss the best method here. I've globally changed it to write to /usr/local/bin. We could also throw a version condition in here if we want to only install to local on 10.11 and above.