N°4666 - Core Update : handle modules

This commit is contained in:
Eric Espie
2022-05-20 09:33:41 +02:00
parent 183c3c1baf
commit ca3aae23a1

21
setup/appupgradecopy.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
use Combodo\iTop\CoreUpdate\Service\CoreUpdater;
/**
* iTop
*
* @copyright Copyright (C) 2010,2022 Combodo SARL
* @license http://opensource.org/licenses/AGPL-3.0
*
*/
function AppUpgradeCopyFiles($sSourceDir)
{
// Update Core update files
$sSource = realpath($sSourceDir.'/datamodels/2.x/itop-core-update');
if ($sSource !== false)
{
CoreUpdater::CopyDir($sSource, APPROOT.'env-production/itop-core-update');
}
}