Skip to content

Commit

Permalink
chown check
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastien Varrette <Sebastien.Varrette@uni.lu>
  • Loading branch information
Sebastien Varrette authored and Sebastien Varrette committed Sep 5, 2017
1 parent 2d9b106 commit 09afeaf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# Time-stamp: <Tue 2017-09-05 17:09 svarrette>
# Time-stamp: <Tue 2017-09-05 17:14 svarrette>
#
# File:: <tt>repo.pp</tt>
# Author:: UL HPC Team (hpc-sysadmins@uni.lu)
Expand Down Expand Up @@ -93,11 +93,10 @@
}

if $ensure == 'present' {
exec { "mkdir -p ${real_path}":
exec { "mkdir -p ${real_path} && chown ${user}: ${real_path}":
path => '/sbin:/usr/bin:/usr/sbin:/bin',
unless => "test -d ${real_path}",
before => Vcsrepo[$real_path],
user => $real_user,
}
}
else {
Expand Down

0 comments on commit 09afeaf

Please sign in to comment.