Work around a bug in Chef's snap_package resource
https://github.com/chef/chef/issues/8827 `snap install` returns 0 when a package is already installed, so no need for a guard clause
This commit is contained in:
parent
09527e693b
commit
1b9a4aad17
@ -25,9 +25,9 @@
|
|||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
#
|
#
|
||||||
|
|
||||||
package 'snapd'
|
# FIXME: Switch to the snap_package resource when it gets fixed:
|
||||||
|
# https://github.com/chef/chef/issues/8827
|
||||||
snap_package 'bitcoin-core'
|
execute "snap install bitcoin-core"
|
||||||
|
|
||||||
bitcoin_user = node['bitcoin']['username']
|
bitcoin_user = node['bitcoin']['username']
|
||||||
bitcoin_group = node['bitcoin']['usergroup']
|
bitcoin_group = node['bitcoin']['usergroup']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user