summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-09-21 15:12:00 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-09-27 18:43:53 +0200
commitda0cea404d3ec2ac1c3f08e3d3791b02b3b958db (patch)
tree97460f0334cd22db70d754777680f35b04821e31 /core/Command
parent6ca8ce62288aa5b181f97c45ad62c35976dbb65f (diff)
downloadnextcloud-server-da0cea404d3ec2ac1c3f08e3d3791b02b3b958db.tar.gz
nextcloud-server-da0cea404d3ec2ac1c3f08e3d3791b02b3b958db.zip
Kill update simulation
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Upgrade.php29
1 files changed, 2 insertions, 27 deletions
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index 69354272de8..9a99473f8fe 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -72,12 +72,6 @@ class Upgrade extends Command {
->setName('upgrade')
->setDescription('run upgrade routines after installation of a new release. The release has to be installed before.')
->addOption(
- '--skip-migration-test',
- null,
- InputOption::VALUE_NONE,
- 'skips the database schema migration simulation and update directly'
- )
- ->addOption(
'--dry-run',
null,
InputOption::VALUE_NONE,
@@ -99,28 +93,12 @@ class Upgrade extends Command {
*/
protected function execute(InputInterface $input, OutputInterface $output) {
- $simulateStepEnabled = true;
- $updateStepEnabled = true;
$skip3rdPartyAppsDisable = false;
- if ($input->getOption('skip-migration-test')) {
- $simulateStepEnabled = false;
- }
- if ($input->getOption('dry-run')) {
- $updateStepEnabled = false;
- }
if ($input->getOption('no-app-disable')) {
$skip3rdPartyAppsDisable = true;
}
- if (!$simulateStepEnabled && !$updateStepEnabled) {
- $output->writeln(
- '<error>Only one of "--skip-migration-test" or "--dry-run" ' .
- 'can be specified at a time.</error>'
- );
- return self::ERROR_INVALID_ARGUMENTS;
- }
-
if(\OC::checkUpgrade(false)) {
if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) {
// Prepend each line with a little timestamp
@@ -135,8 +113,6 @@ class Upgrade extends Command {
$this->logger
);
- $updater->setSimulateStepEnabled($simulateStepEnabled);
- $updater->setUpdateStepEnabled($updateStepEnabled);
$updater->setSkip3rdPartyAppsDisable($skip3rdPartyAppsDisable);
$dispatcher = \OC::$server->getEventDispatcher();
$progress = new ProgressBar($output);
@@ -229,11 +205,10 @@ class Upgrade extends Command {
});
$updater->listen('\OC\Updater', 'updateEnd',
function ($success) use($output, $updateStepEnabled, $self) {
- $mode = $updateStepEnabled ? 'Update' : 'Update simulation';
if ($success) {
- $message = "<info>$mode successful</info>";
+ $message = "<info>Update successful</info>";
} else {
- $message = "<error>$mode failed</error>";
+ $message = "<error>Update failed</error>";
}
$output->writeln($message);
});