From 7cf8762e56b75f5a1402c4a81820cccb7e5e0e60 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 13:16:47 +0200 Subject: [PATCH] Updated execution of 'on_update'. --- manifests/auth.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/auth.pp b/manifests/auth.pp index 2e8dabc..4cf8318 100644 --- a/manifests/auth.pp +++ b/manifests/auth.pp @@ -136,11 +136,12 @@ 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, - command => "$auth_home/on_update.sh", + command => "/bin/bash -l $auth_home/on_update.sh", refreshonly => true, require => File["${auth_home}/on_update.sh"], notify => Service[$auth_service], -- GitLab