Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
owncloud-prm /
updater /
src /
Command /
Delete
Unzip
Name
Size
Permission
Date
Action
BackupDataCommand.php
1.28
KB
-rw-r--r--
2018-04-19 18:16
BackupDbCommand.php
1.27
KB
-rw-r--r--
2018-04-19 18:16
CheckSystemCommand.php
3.42
KB
-rw-r--r--
2018-04-19 18:16
CheckpointCommand.php
3.19
KB
-rw-r--r--
2018-04-19 18:16
CleanCacheCommand.php
1.27
KB
-rw-r--r--
2018-04-19 18:16
Command.php
1.21
KB
-rw-r--r--
2018-04-19 18:16
DetectCommand.php
5.72
KB
-rw-r--r--
2018-04-19 18:16
ExecuteCoreUpgradeScriptsCommand.php
6.52
KB
-rw-r--r--
2018-04-19 18:16
InfoCommand.php
1.47
KB
-rw-r--r--
2018-04-19 18:16
MaintenanceModeCommand.php
2.03
KB
-rw-r--r--
2018-04-19 18:16
PostUpgradeCleanupCommand.php
2.62
KB
-rw-r--r--
2018-04-19 18:16
PostUpgradeRepairCommand.php
1.37
KB
-rw-r--r--
2018-04-19 18:16
PreUpgradeRepairCommand.php
1.36
KB
-rw-r--r--
2018-04-19 18:16
RestartWebServerCommand.php
1.31
KB
-rw-r--r--
2018-04-19 18:16
StartCommand.php
2.29
KB
-rw-r--r--
2018-04-19 18:16
UpdateConfigCommand.php
1.28
KB
-rw-r--r--
2018-04-19 18:16
Save
Rename
<?php /** * @author Victor Dubiniuk <dubiniuk@owncloud.com> * * @copyright Copyright (c) 2015, ownCloud, Inc. * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see <http://www.gnu.org/licenses/> * */ namespace Owncloud\Updater\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Class PostUpgradeCleanupCommand * * @package Owncloud\Updater\Command */ class PostUpgradeCleanupCommand extends Command { protected function configure(){ $this ->setName('upgrade:postUpgradeCleanup') ->setDescription('repair and cleanup step 2 (online) [danger, might take long]') ; } /** * @param InputInterface $input * @param OutputInterface $output */ protected function execute(InputInterface $input, OutputInterface $output){ $registry = $this->container['utils.registry']; $fsHelper = $this->container['utils.filesystemhelper']; $locator = $this->container['utils.locator']; //Update updater $feed = $registry->get('feed'); $fullExtractionPath = $locator->getExtractionBaseDir() . '/' . $feed->getVersion(); $tmpDir = $locator->getExtractionBaseDir() . '/' . $registry->get('installedVersion'); $oldSourcesDir = $locator->getOwncloudRootPath(); $newSourcesDir = $fullExtractionPath . '/owncloud'; $newUpdaterDir = $newSourcesDir . '/updater'; $oldUpdaterDir = $oldSourcesDir . '/updater'; $tmpUpdaterDir = $tmpDir . '/updater'; $fsHelper->mkdir($tmpUpdaterDir); foreach ($locator->getUpdaterContent() as $dir){ $this->getApplication()->getLogger()->debug('Moving updater/' . $dir); $fsHelper->tripleMove($oldUpdaterDir, $newUpdaterDir, $tmpUpdaterDir, $dir); } //Cleanup Filesystem $fsHelper->removeIfExists($locator->getExtractionBaseDir()); //Retrigger integrity check try { $this->container['utils.occrunner']->run('integrity:check-core'); } catch (\Exception $e){ $this->getApplication()->getLogger()->error('Integrity check failed'); $this->getApplication()->logException($e); } //Cleanup updater cache $registry->clearAll(); $output->writeln('Done'); } }