From dd29e5efbf8b851465b0814a5805795a5611f0ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Filip=20Str=C3=B6mb=C3=A4ck?= <filip.stromback@liu.se>
Date: Thu, 20 Jun 2024 13:47:25 +0200
Subject: [PATCH] Replaced "creates" with "refreshonly" to make sure things are
 re-compiled.

---
 files/tal/on_update.sh | 1 +
 manifests/auth.pp      | 2 +-
 manifests/broker.pp    | 2 +-
 manifests/tal_cli.pp   | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/files/tal/on_update.sh b/files/tal/on_update.sh
index 5108f56..d29cffa 100644
--- a/files/tal/on_update.sh
+++ b/files/tal/on_update.sh
@@ -1,5 +1,6 @@
 #!/usr/bin/bash
 
+# Log if we were asked to do so.
 if [[ $# -gt 0 ]]
 then
     /home/examadm/tal-cli/on_update.sh 2>&1 | tee /home/examadm/tal-cli/log
diff --git a/manifests/auth.pp b/manifests/auth.pp
index eacb162..8180e32 100644
--- a/manifests/auth.pp
+++ b/manifests/auth.pp
@@ -149,7 +149,7 @@ class aes::auth (
     environment => ["HOME=${auth_home}"],
     command     => "${auth_home}/on_update.sh",
     require     => File["${auth_home}/on_update.sh"],
-    creates     => "${auth_home}/bin/auth",
+    refreshonly => true,
     notify      => Service[$auth_service],
   }
 
diff --git a/manifests/broker.pp b/manifests/broker.pp
index 4dfa689..c2895d5 100644
--- a/manifests/broker.pp
+++ b/manifests/broker.pp
@@ -164,7 +164,7 @@ class aes::broker {
     environment => ["HOME=${broker_home}"],
     command     => "${broker_home}/on_update.sh",
     require     => File["${broker_home}/on_update.sh"],
-    creates     => "${broker_home}/bin/broker",
+    refreshonly => true,
     notify      => Service[$broker_service],
   }
 
diff --git a/manifests/tal_cli.pp b/manifests/tal_cli.pp
index b1228a9..2164dcc 100644
--- a/manifests/tal_cli.pp
+++ b/manifests/tal_cli.pp
@@ -74,7 +74,7 @@ class aes::tal_cli (
     path        => '/bin:/usr/bin',
     environment => ['HOME=/home/examadm'],
     refreshonly => true,
-    command     => '/home/examadm/tal-cli/on_update.sh --log',
+    command     => '/home/examadm/tal-cli/on_update.sh',
     require     => File['/home/examadm/tal-cli/on_update.sh'],
   }
 
-- 
GitLab