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 <xucheng@me.com>
This commit is contained in:
parent
941842f0d6
commit
4fccab615f
@ -560,6 +560,8 @@ class FormulaInstaller
|
|||||||
return unless formula.plist
|
return unless formula.plist
|
||||||
formula.plist_path.atomic_write(formula.plist)
|
formula.plist_path.atomic_write(formula.plist)
|
||||||
formula.plist_path.chmod 0644
|
formula.plist_path.chmod 0644
|
||||||
|
log = formula.var/"log"
|
||||||
|
log.mkpath if formula.plist.include? log.to_s
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
onoe "Failed to install plist file"
|
onoe "Failed to install plist file"
|
||||||
ohai e, e.backtrace if debug?
|
ohai e, e.backtrace if debug?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user