Skip to content

Commit bbf0fcc

Browse files
committed
Fixes #38111 - Change content source & REX Pull provider
1 parent 614ec0b commit bbf0fcc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/helpers/katello/content_source_helper.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ def reconfigure_yggdrasild(host)
4848

4949
source = Foreman::Renderer.get_source(template: template, host: host)
5050
scope = Foreman::Renderer.get_scope(source: source, host: host)
51-
Foreman::Renderer.render(source, scope)
51+
52+
<<~CMD
53+
if [ -f /etc/yggdrasil/config.toml ]; then
54+
cp /etc/yggdrasil/config.toml /etc/yggdrasil/config.toml.bak
55+
export YGGDRASIL_RESTART_DELAY=10
56+
#{Foreman::Renderer.render(source, scope)}
57+
fi
58+
CMD
5259
end
5360
end
5461
end

0 commit comments

Comments
 (0)