extension and upgrade scripts fix
This commit is contained in:
+1
-3
@@ -47,13 +47,11 @@ if (!isset($pathInfo['extension']) || $pathInfo['extension'] !== 'zip' || !is_fi
|
|||||||
}
|
}
|
||||||
|
|
||||||
$app = new \Espo\Core\Application();
|
$app = new \Espo\Core\Application();
|
||||||
|
$app->setupSystemUser();
|
||||||
|
|
||||||
$config = $app->getContainer()->get('config');
|
$config = $app->getContainer()->get('config');
|
||||||
$entityManager = $app->getContainer()->get('entityManager');
|
$entityManager = $app->getContainer()->get('entityManager');
|
||||||
|
|
||||||
$user = $entityManager->getEntity('User', 'system');
|
|
||||||
$app->getContainer()->setUser($user);
|
|
||||||
|
|
||||||
$upgradeManager = new \Espo\Core\ExtensionManager($app->getContainer());
|
$upgradeManager = new \Espo\Core\ExtensionManager($app->getContainer());
|
||||||
|
|
||||||
echo "Starting installation process...\n";
|
echo "Starting installation process...\n";
|
||||||
|
|||||||
+1
-3
@@ -52,13 +52,11 @@ if (!isset($pathInfo['extension']) || $pathInfo['extension'] !== 'zip' || !is_fi
|
|||||||
}
|
}
|
||||||
|
|
||||||
$app = new \Espo\Core\Application();
|
$app = new \Espo\Core\Application();
|
||||||
|
$app->setupSystemUser();
|
||||||
|
|
||||||
$config = $app->getContainer()->get('config');
|
$config = $app->getContainer()->get('config');
|
||||||
$entityManager = $app->getContainer()->get('entityManager');
|
$entityManager = $app->getContainer()->get('entityManager');
|
||||||
|
|
||||||
$user = $entityManager->getEntity('User', 'system');
|
|
||||||
$app->getContainer()->setUser($user);
|
|
||||||
|
|
||||||
$upgradeManager = new \Espo\Core\UpgradeManager($app->getContainer());
|
$upgradeManager = new \Espo\Core\UpgradeManager($app->getContainer());
|
||||||
|
|
||||||
echo "Current version is " . $config->get('version') . "\n";
|
echo "Current version is " . $config->get('version') . "\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user