Run commands with more permissive umask.
This commit is contained in:
parent
6b21bb54ef
commit
bcefe1ff00
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ define python::setup::install($python="python") {
|
|||
exec { "python-setup-install-${name}":
|
||||
path => "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin",
|
||||
cwd => "${name}",
|
||||
command => "${python} setup.py install",
|
||||
command => "/bin/sh -c 'umask 022; ${python} setup.py install'",
|
||||
creates => "${name}/build",
|
||||
}
|
||||
|
||||
|
|
|
@ -57,9 +57,9 @@ define util::extract::tar($source, $ensure=present, $strip=0, $preserve=false) {
|
|||
}
|
||||
|
||||
if $preserve {
|
||||
$command = "${cat} ${source} | ${tar} xf - --strip-components=${strip} -C ${name}"
|
||||
$command = "/bin/sh -c 'umask 022; ${cat} ${source} | ${tar} xf - --strip-components=${strip} -C ${name}'"
|
||||
} else {
|
||||
$command = "${cat} ${source} | ${tar} xf - --strip-components=${strip} -C ${name} --no-same-owner --no-same-permissions"
|
||||
$command = "/bin/sh -c 'umask 022; ${cat} ${source} | ${tar} xf - --strip-components=${strip} -C ${name} --no-same-owner --no-same-permissions'"
|
||||
}
|
||||
|
||||
exec { "tar-extract-${name}":
|
||||
|
|
Loading…
Add table
Reference in a new issue