mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fixed setting the component search path.
This commit is contained in:
parent
8c6d3cd5b7
commit
a8b83c2d35
@ -27,10 +27,8 @@ int IcingaApplication::Main(const vector<string>& args)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
#ifndef _WIN32
|
||||
string componentDirectory = GetExeDirectory() + "../lib/icinga";
|
||||
string componentDirectory = GetExeDirectory() + "/../lib/icinga";
|
||||
AddComponentSearchDir(componentDirectory);
|
||||
#endif /* _WIN32 */
|
||||
|
||||
GetConfigHive()->OnObjectCreated.bind(bind_weak(&IcingaApplication::ConfigObjectCreatedHandler, shared_from_this()));
|
||||
GetConfigHive()->OnObjectRemoved.bind(bind_weak(&IcingaApplication::ConfigObjectRemovedHandler, shared_from_this()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user