From 06f322f1399dc4d865eb2d34b7fbb4846939a91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= <filip.stromback@liu.se> Date: Mon, 21 Aug 2023 14:16:23 +0200 Subject: [PATCH] Fixed warning in exec statement. --- manifests/auth.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/auth.pp b/manifests/auth.pp index 417fd1c..5e4c432 100644 --- a/manifests/auth.pp +++ b/manifests/auth.pp @@ -136,13 +136,13 @@ class aes::auth ( notify => Exec['compile-auth-repo'], } - # Note: We need a login shell, otherwise PATH and HOME are not set. exec { 'compile-auth-repo': user => $auth_user, group => $auth_group, - path => $auth_home, + cwd => $auth_home, + path => '/bin:/usr/bin', command => "${auth_home}/on_update.sh", - environment => ["HOME=${auth_home}", 'PATH=/bin:/usr/bin'], + environment => ["HOME=${auth_home}"], refreshonly => true, require => File["${auth_home}/on_update.sh"], notify => Service[$auth_service], -- GitLab