Skip to content

Commit

Permalink
Use Rails.root for systemd working_directory
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed May 15, 2019
1 parent 6952ca3 commit 8b62825
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/miq_worker/systemd_common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ def unit_file
end

def working_directory
# TODO: pull this dynamically
"/var/www/miq/vmdb"
Rails.root
end

def exec_start
Expand Down

0 comments on commit 8b62825

Please sign in to comment.