From 60e0da6b6728195ba63d2ab53691dce9035371b6 Mon Sep 17 00:00:00 2001 From: Link Dupont Date: Thu, 24 Oct 2024 12:04:35 -0400 Subject: [PATCH] fix: explicitly create facts file To ensure yggd can read the facts file, create it and change ownership to yggdrasil. --- rhc-canonical-facts.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rhc-canonical-facts.service b/rhc-canonical-facts.service index 2bcf0ec..88ebbf6 100644 --- a/rhc-canonical-facts.service +++ b/rhc-canonical-facts.service @@ -4,8 +4,8 @@ Documentation=https://github.com/RedHatInsights/rhc [Service] Type=oneshot -User=root -Group=yggdrasil-worker +ExecStart=touch /var/lib/yggdrasil/canonical-facts.json +ExecStart=chown yggdrasil:yggdrasil /var/lib/yggdrasil/canonical-facts.json ExecStart=rhc canonical-facts StandardOutput=truncate:/var/lib/yggdrasil/canonical-facts.json StandardError=journal