diff --git a/manifests/auth.pp b/manifests/auth.pp index 417fd1c8815eeae581a18b431d1574dcd145c107..5e4c4329443a483f51abc7f06061a526979fecca 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],