From d5b52ddd21bc32d250d1d8d3d4308c00d505a0cf Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sat, 19 Jun 2021 20:01:06 +0100 Subject: [PATCH] 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 --- core/Command/Maintenance/Install.php | 3 +++ 1 file changed, 3 insertions(+) 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('Could not remove CAN_INSTALL from the config folder. Please remove this file manually.'); + } $output->writeln("Nextcloud was successfully installed"); return 0; }