diff options
| author | Dominyk Tiller | 2014-11-02 09:42:15 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-03 19:29:49 +0000 |
| commit | c6bc9b7e9f0be9a3299c8c73bbd3739ee09c9075 (patch) | |
| tree | f75e784ca7f49967b433a516670afcb9f415b9ae /Library | |
| parent | 0b7146f123df352031c69862035249614b85728c (diff) | |
| download | brew-c6bc9b7e9f0be9a3299c8c73bbd3739ee09c9075.tar.bz2 | |
caveats: yosemite adjustments
Closes Homebrew/homebrew#33815
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/caveats.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/caveats.rb b/Library/Homebrew/caveats.rb index 94096b463..e1bed41da 100644 --- a/Library/Homebrew/caveats.rb +++ b/Library/Homebrew/caveats.rb @@ -115,11 +115,14 @@ class Caveats # we readlink because this path probably doesn't exist since caveats # occurs before the link step of installation + # Yosemite security measures mildly tighter rules: + # https://github.com/Homebrew/homebrew/issues/33815 if !plist_path.file? || !plist_path.symlink? if f.plist_startup s << "To have launchd start #{f.name} at startup:" s << " sudo mkdir -p #{destination}" unless destination_path.directory? s << " sudo cp -fv #{f.opt_prefix}/*.plist #{destination}" + s << " sudo chown root #{plist_link}" else s << "To have launchd start #{f.name} at login:" s << " mkdir -p #{destination}" unless destination_path.directory? @@ -137,6 +140,7 @@ class Caveats s << "To reload #{f.name} after an upgrade:" s << " sudo launchctl unload #{plist_link}" s << " sudo cp -fv #{f.opt_prefix}/*.plist #{destination}" + s << " sudo chown root #{plist_link}" s << " sudo launchctl load #{plist_link}" elsif Kernel.system "/bin/launchctl list #{plist_domain} &>/dev/null" s << "To reload #{f.name} after an upgrade:" |
