Skip to content

Commit

Permalink
fix #44 - only manage permissions for /usr/local/Homebrew (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKevJames authored Oct 25, 2016
1 parent f609388 commit 942f587
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions manifests/install.pp
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
class homebrew::install {

file { ['/usr/local', '/Library/Caches/Homebrew']:
file { '/usr/local':
ensure => directory,
} ->
file { '/usr/local/Homebrew':
ensure => directory,
owner => $homebrew::user,
group => $homebrew::group,
mode => '0775',
recurse => true,
}

} ->
exec { 'install-homebrew':
cwd => '/usr/local',
command => "/usr/bin/su ${homebrew::user} -c '/bin/bash -o pipefail -c \"/usr/bin/curl -skSfL https://github.com/homebrew/brew/tarball/master | /usr/bin/tar xz -m --strip 1\"'",
creates => '/usr/local/bin/brew',
logoutput => on_failure,
timeout => 0,
require => File['/usr/local'],
} ~>
file { '/usr/local/bin/brew':
owner => $homebrew::user,
Expand Down

0 comments on commit 942f587

Please sign in to comment.