Skip to content

Commit

Permalink
Файл установки. Очистка
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolovsky committed Dec 29, 2015
1 parent 566b776 commit 3b92bc4
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 3b92bc4

Please sign in to comment.