Create the snap mount directory in the user's home

This commit is contained in:
Greg Karékinian 2020-01-22 12:34:18 +01:00 committed by Sebastian Kippe
parent 069246cf41
commit aedf7bcb62
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

View File

@ -56,6 +56,14 @@ template "#{bitcoin_datadir}/bitcoin.conf" do
# notifies :reload, "service[bitcoin]", :delayed
end
directory "/home/#{bitcoin_user}/snap/bitcoin-core/common/.bitcoin" do
owner bitcoin_user
group bitcoin_group
mode '0750'
recursive true
action :create
end
mount "/home/#{bitcoin_user}/snap/bitcoin-core/common/.bitcoin" do
device node['bitcoin']['data_dir']
fstype 'none'