From 44deb07cb31a6e4f24a40db276961fd8656215f1 Mon Sep 17 00:00:00 2001 From: Stejskal Leos Date: Tue, 17 Dec 2024 14:51:40 +0000 Subject: [PATCH] Fixes #38111 - Change content source & REX Pull provider --- app/helpers/katello/content_source_helper.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/helpers/katello/content_source_helper.rb b/app/helpers/katello/content_source_helper.rb index 2e4d3149f64..349ef2774a9 100644 --- a/app/helpers/katello/content_source_helper.rb +++ b/app/helpers/katello/content_source_helper.rb @@ -48,7 +48,14 @@ def reconfigure_yggdrasild(host) source = Foreman::Renderer.get_source(template: template, host: host) scope = Foreman::Renderer.get_scope(source: source, host: host) - Foreman::Renderer.render(source, scope) + + <<~CMD + if [ -f /etc/yggdrasil/config.toml ]; then + cp /etc/yggdrasil/config.toml /etc/yggdrasil/config.toml.bak + export YGGDRASIL_RESTART_DELAY=10 + #{Foreman::Renderer.render(source, scope)} + fi + CMD end end end