Fix incorrect argument for Application::GetExePath

fixes #4709
This commit is contained in:
Gunnar Beutner 2017-02-21 10:59:43 +01:00
parent 3cdcdb8769
commit a75d7d69ec
1 changed files with 3 additions and 1 deletions

View File

@ -201,9 +201,11 @@ void ConfigPackageUtility::TryActivateStageCallback(const ProcessResult& pr, con
void ConfigPackageUtility::AsyncTryActivateStage(const String& packageName, const String& stageName)
{
VERIFY(Application::GetArgC() >= 1);
// prepare arguments
Array::Ptr args = new Array();
args->Add(Application::GetExePath("icinga2"));
args->Add(Application::GetExePath(Application::GetArgV()[0]));
args->Add("daemon");
args->Add("--validate");
args->Add("--define");