From 9fc0ddbaaf0ee45dfeb4e070810349ca522fcfd2 Mon Sep 17 00:00:00 2001 From: Ashley Gould Date: Sun, 15 Sep 2024 12:34:38 -0700 Subject: [PATCH] Change owner attribute in Exec[git-pull-rubybuild-${name}] (#98) This addresses issue #97 rspec passes locally --- manifests/build.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/build.pp b/manifests/build.pp index f741ea5..7906464 100644 --- a/manifests/build.pp +++ b/manifests/build.pp @@ -134,7 +134,7 @@ -> exec { "git-pull-rubybuild-${title}": command => 'git reset --hard HEAD && git pull', cwd => "${install_dir}/plugins/ruby-build", - user => 'root', + user => $owner, unless => "test -d ${install_dir}/versions/${title}", require => Rbenv::Plugin['rbenv/ruby-build'], }