From f095094cf78ad966ced9a191e10f8695a6dfd07c Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 29 Jun 2021 15:53:52 +0200 Subject: [PATCH] Fix compilation issue with dotnet services Compilation fails while the executable is running. Fixed by stopping the services before upgrades. --- site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb | 1 + site-cookbooks/kosmos-bitcoin/recipes/nbxplorer.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb b/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb index 562ef67..42cf3c6 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/btcpay.rb @@ -11,6 +11,7 @@ git node['btcpay']['source_dir'] do repository node['btcpay']['repo'] revision node['btcpay']['revision'] action :sync + notifies :stop, "systemd_unit[btcpayserver.service]", :immediately notifies :run, 'bash[build_btcpay]', :immediately end diff --git a/site-cookbooks/kosmos-bitcoin/recipes/nbxplorer.rb b/site-cookbooks/kosmos-bitcoin/recipes/nbxplorer.rb index 729e076..d771ede 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/nbxplorer.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/nbxplorer.rb @@ -11,6 +11,7 @@ git node['nbxplorer']['source_dir'] do repository node['nbxplorer']['repo'] revision node['nbxplorer']['revision'] action :sync + notifies :stop, "systemd_unit[nbxplorer.service]", :immediately notifies :run, 'bash[build_nbxplorer]', :immediately end