Skip to content

Commit 19b551b

Browse files
author
John Bellone
committed
Be a little minor pedantic on my part.
1 parent 3a08823 commit 19b551b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

recipes/default.rb

+3-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
end
2929
end
3030

31-
# NSSM will run Consul as the SYSTEM account
32-
if node['os'].eql? 'linux'
33-
poise_service_user node['consul']['service_user'] do
34-
group node['consul']['service_group']
35-
end
31+
poise_service_user node['consul']['service_user'] do
32+
group node['consul']['service_group']
33+
not_if { platform?('windows') }
3634
end
3735

3836
config = consul_config node['consul']['service_name'] do |r|

0 commit comments

Comments
 (0)