mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
don't silently exit in cli-mode in case ownCloud in not yet installed
This commit is contained in:
parent
e2327f83ed
commit
2594fb80aa
1 changed files with 2 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ class OC {
|
|||
if (!OC::$CLI) {
|
||||
$url = 'http://' . $_SERVER['SERVER_NAME'] . OC::$WEBROOT . '/index.php';
|
||||
header("Location: $url");
|
||||
} else {
|
||||
throw new Exception("Not installed");
|
||||
}
|
||||
exit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue