]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log a warning to CLI install command if CAN_INSTALL is not removed
authorAlex Harpin <development@landsofshadow.co.uk>
Sat, 19 Jun 2021 19:01:06 +0000 (20:01 +0100)
committerAlex Harpin <development@landsofshadow.co.uk>
Tue, 10 Jan 2023 11:59:06 +0000 (11:59 +0000)
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>
core/Command/Maintenance/Install.php

index c445f2c2f46b793546e904d78399dd3810448a30..c06cffe7dfc408951836cc464b6ed18088a96708 100644 (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;
        }