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>
This commit is contained in:
Alex Harpin 2021-06-19 20:01:06 +01:00
parent 72af140723
commit d5b52ddd21

View file

@ -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;
}