src/Command/ExecuteCoreUpgradeScriptsCommand.php 1 location
|
@@ 95-98 (lines=4) @@
|
| 92 |
|
$oldSourcesDir = $locator->getOwncloudRootPath(); |
| 93 |
|
$newSourcesDir = $fullExtractionPath . '/owncloud'; |
| 94 |
|
|
| 95 |
|
foreach ($locator->getRootDirContent() as $dir){ |
| 96 |
|
$this->getApplication()->getLogger()->debug('Moving ' . $dir); |
| 97 |
|
$fsHelper->tripleMove($oldSourcesDir, $newSourcesDir, $tmpDir, $dir); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
try { |
| 101 |
|
$plain = $this->occRunner->run('upgrade'); |
src/Command/PostUpgradeCleanupCommand.php 1 location
|
@@ 54-57 (lines=4) @@
|
| 51 |
|
$tmpUpdaterDir = $tmpDir . '/updater'; |
| 52 |
|
$fsHelper->mkdir($tmpUpdaterDir); |
| 53 |
|
|
| 54 |
|
foreach ($locator->getUpdaterContent() as $dir){ |
| 55 |
|
$this->getApplication()->getLogger()->debug('Moving updater/' . $dir); |
| 56 |
|
$fsHelper->tripleMove($oldUpdaterDir, $newUpdaterDir, $tmpUpdaterDir, $dir); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
//Cleanup Filesystem |
| 60 |
|
$fsHelper->removeIfExists($locator->getExtractionBaseDir()); |