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