Fixed module path for 64-bit RHEL.

Fixes #3150
This commit is contained in:
Gunnar Beutner 2012-09-21 15:14:26 +02:00
parent 257c9a8aef
commit de29105e43
1 changed files with 3 additions and 2 deletions

View File

@ -62,8 +62,9 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
String componentDirectory = Utility::DirName(Application::GetExePath(argv[0])) + "/../lib/icinga2";
Component::AddSearchDir(componentDirectory);
String exeDirectory = Utility::DirName(Application::GetExePath(argv[0]));
Component::AddSearchDir(exeDirectory + "/../lib/icinga2");
Component::AddSearchDir(exeDirectory + "/../lib64/icinga2");
DynamicObject::BeginTx();