From 3b92bc4b8a04219a949e8dbb8cce312790a21cc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=BE=D0=BA?= =?UTF-8?q?=D0=BE=D0=BB=D0=BE=D0=B2=D1=81=D0=BA=D0=B8=D0=B9?= Date: Tue, 29 Dec 2015 12:49:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B0=D0=B9=D0=BB=20=D1=83=D1=81=D1=82?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8.=20=D0=9E=D1=87=D0=B8?= =?UTF-8?q?=D1=81=D1=82=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- updater.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/updater.php b/updater.php index cad341d..aa637b2 100644 --- a/updater.php +++ b/updater.php @@ -20,37 +20,3 @@ $updatePath = $docRoot.$updater->curModulePath; $isInstalled = \Bitrix\Main\ModuleManager::isModuleInstalled($updater->moduleID); -if (!$isInstalled) { - return; -} - -if (!is_dir($uploadDir.'/ws.migrations')) { - $copyRes = CopyDirFiles($updatePath.'/install/upload', $uploadDir, false, true); - if (!$copyRes) { - $fAddErrorMessage("Use platform version catalog not setup"); - return; - } - // init file version - $versionRaw = \COption::GetOptionString($updater->moduleID, 'version'); - $version = unserialize($versionRaw); - - $ownerRaw = \COption::GetOptionString($updater->moduleID, 'owner'); - $owner = unserialize($ownerRaw); - - $createVersionFile = file_put_contents( - $uploadDir.'/ws.migrations/version.dat', - $version.':#:'.md5($version.$modulePath.'/lib/platformversion.php').':#:'.$owner - ); - if (!$createVersionFile) { - $fAddErrorMessage("Version file was not created"); - return; - } -} - -// cli -$dest = $docRoot.'bitrix/tools'; -$copyRes = CopyDirFiles($docRoot .$updater->curModulePath.'/install/tools', $dest, false, true); -if (!$copyRes) { - $fAddErrorMessage("Cli interface file was not created"); - return; -}