From e45a524aa0e283bf75de2d918967af673dcc614a 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:03:55 +0200 Subject: [PATCH] Another attempt with environment to 'on_update.sh'. --- manifests/auth.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/auth.pp b/manifests/auth.pp index 4cf8318..3827c38 100644 --- a/manifests/auth.pp +++ b/manifests/auth.pp @@ -141,7 +141,8 @@ class aes::auth ( user => $auth_user, group => $auth_group, path => $auth_home, - command => "/bin/bash -l $auth_home/on_update.sh", + command => "$auth_home/on_update.sh", + environment => [ "HOME=$auth_home", "PATH=/bin:/usr/bin" ], refreshonly => true, require => File["${auth_home}/on_update.sh"], notify => Service[$auth_service], -- GitLab