diff options
author | Dave Eddy <dave@daveeddy.com> | 2014-08-17 13:50:18 -0700 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2014-08-29 07:58:41 -0400 |
commit | e43894e3b75eb9cb8d9b649ebbe6682bbbe28cc4 (patch) | |
tree | 5fb3d636847ad84d367b6fefb87f915df68e2ce3 /lib/chef/provider/service/freebsd.rb | |
parent | f74eb6c47e6bcb373f0f1e214c7f42b5715fb6f3 (diff) | |
download | chef-e43894e3b75eb9cb8d9b649ebbe6682bbbe28cc4.tar.gz |
add trailing = to regex for freebsd service deletion
Diffstat (limited to 'lib/chef/provider/service/freebsd.rb')
-rw-r--r-- | lib/chef/provider/service/freebsd.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/service/freebsd.rb b/lib/chef/provider/service/freebsd.rb index 7eefd10001..4cd51088d6 100644 --- a/lib/chef/provider/service/freebsd.rb +++ b/lib/chef/provider/service/freebsd.rb @@ -153,7 +153,7 @@ class Chef def set_service_enable(value) lines = read_rc_conf # Remove line that set the old value - lines.delete_if { |line| line =~ /^#{Regexp.escape(service_enable_variable_name)}/ } + lines.delete_if { |line| line =~ /^#{Regexp.escape(service_enable_variable_name)}=/ } # And append the line that sets the new value at the end lines << "#{service_enable_variable_name}=\"#{value}\"" write_rc_conf(lines) |