Stop BTCPay server before compilation

fixes #291
This commit is contained in:
Basti 2021-01-26 11:48:41 +01:00
parent f1ff34d769
commit f7d3abc307
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,10 @@ end
bash 'build_btcpay' do
cwd node['btcpay']['source_dir']
code './build.sh'
code <<-EOH
systemctl stop btcpayserver.service
./build.sh
EOH
action :nothing
notifies :restart, "systemd_unit[btcpayserver.service]", :delayed
end