From 4fccab615fe2882cd9210d017a2995348e1b9e27 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Mon, 23 Mar 2015 01:14:21 +0800 Subject: [PATCH] install_plist: create var/log path Let homebrew create var/log path to avoid permission problem. Closes Homebrew/homebrew#37966 Closes Homebrew/homebrew#37967. Signed-off-by: Xu Cheng --- Library/Homebrew/formula_installer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 5ef6660fd5..1e6903be62 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -560,6 +560,8 @@ class FormulaInstaller return unless formula.plist formula.plist_path.atomic_write(formula.plist) formula.plist_path.chmod 0644 + log = formula.var/"log" + log.mkpath if formula.plist.include? log.to_s rescue Exception => e onoe "Failed to install plist file" ohai e, e.backtrace if debug?