Skip to content

Commit

Permalink
Merge pull request #55 from chef/svdir-set
Browse files Browse the repository at this point in the history
Explicitly set SVDIR to the service_dir
  • Loading branch information
stevendanna authored Mar 28, 2017
2 parents 5a80ace + d8f3806 commit 43b1041
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/omnibus-ctl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ def initialize(name, merge_service_commands=true, disp_name = nil)
@force_exit = false
@global_pre_hooks = {}

# Remove SVDIR if it is set
ENV.delete('SVDIR')
# TODO(ssd) 2017-03-28: Set SVDIR explicitly. Once we fix a bug
# in our debian support, where we rely on system-installed
# runit, we can likely change this back to ENV.delete("SVDIR")
ENV['SVDIR'] = service_path

# backwards compat command map that does not have categories
@command_map = { }
Expand Down

0 comments on commit 43b1041

Please sign in to comment.