mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-05-05 10:56:11 +02:00
Fix if fluentd is not installed
This commit is contained in:
parent
b9e4bd7af8
commit
998eb6acf3
@ -190,7 +190,8 @@ class Plugin
|
||||
end
|
||||
|
||||
def fluent_gem_path
|
||||
if Fluentd.instance.fluentd?
|
||||
# On installed both td-agent and fluentd system, decide which fluent-gem command should be used depend on setup(Fluentd.instance)
|
||||
if Fluentd.instance && Fluentd.instance.fluentd?
|
||||
return "fluent-gem" # maybe `fluent-gem` command is in the $PATH
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user