From fca7b7a7379c129b09b81de8b2110749639f3c1e Mon Sep 17 00:00:00 2001 From: tse Date: Thu, 5 Nov 2015 14:56:38 +0100 Subject: [PATCH] Fixed the permissions ERRORS while execute cleanup-old-sonarqube-version during puppet-RUN Error: '/tmp/cleanup-old-sonarqube-versions.sh' is not executable Error: /Stage[main]/Sonarqube/Exec[remove-old-versions-of-sonarqube]/returns: change from notrun to 0 failed: '/tmp/cleanup-old-sonarqube-versions.sh' is not executable --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index dc914fd6..858fde43 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -172,7 +172,7 @@ } -> exec { 'remove-old-versions-of-sonarqube': - command => "/tmp/cleanup-old-sonarqube-versions.sh ${installroot} ${version}", + command => "bash /tmp/cleanup-old-sonarqube-versions.sh ${installroot} ${version}", path => '/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin', }