From 8b62825f6cc86dc5e1b4980698dfb9c915fc18fe Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Wed, 15 May 2019 15:54:36 -0400 Subject: [PATCH] Use Rails.root for systemd working_directory --- app/models/miq_worker/systemd_common.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/miq_worker/systemd_common.rb b/app/models/miq_worker/systemd_common.rb index 927656016ef3..d3010798eebb 100644 --- a/app/models/miq_worker/systemd_common.rb +++ b/app/models/miq_worker/systemd_common.rb @@ -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