aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2021-06-19 20:01:06 +0100
committerAlex Harpin <development@landsofshadow.co.uk>2023-01-10 11:59:06 +0000
commitd5b52ddd21bc32d250d1d8d3d4308c00d505a0cf (patch)
treede0d9512c4b1ce0bbbae2a5e39b2a9f017e56b5f
parent72af1407237f716282308c9288e7e7170343376e (diff)
downloadnextcloud-server-d5b52ddd21bc32d250d1d8d3d4308c00d505a0cf.tar.gz
nextcloud-server-d5b52ddd21bc32d250d1d8d3d4308c00d505a0cf.zip
Log a warning to CLI install command if CAN_INSTALL is not removed
Log a warning for the CLI install command if the CAN_INSTALL file still exists at the end of the installation. This matches the warning logged by the web installer. Signed-off-by: Alex Harpin <development@landsofshadow.co.uk>
-rw-r--r--core/Command/Maintenance/Install.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Command/Maintenance/Install.php b/core/Command/Maintenance/Install.php
index c445f2c2f46..c06cffe7dfc 100644
--- a/core/Command/Maintenance/Install.php
+++ b/core/Command/Maintenance/Install.php
@@ -107,6 +107,9 @@ class Install extends Command {
$this->printErrors($output, $errors);
return 1;
}
+ if ($setupHelper->canInstallExists()) {
+ $output->writeln('<warn>Could not remove CAN_INSTALL from the config folder. Please remove this file manually.</warn>');
+ }
$output->writeln("Nextcloud was successfully installed");
return 0;
}