Skip to content

Commit

Permalink
Add non-zero exit code for non-writable config dir and missing app-di…
Browse files Browse the repository at this point in the history
…r (CLI only)
  • Loading branch information
VicDeo committed Mar 20, 2020
1 parent da92e15 commit 95a3f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public static function checkConfig() {
echo $l->t('This can usually be fixed by giving the webserver write access to the config directory')."\n";
echo "\n";
echo $l->t('See %s', [ $urlGenerator->linkToDocs('admin-dir_permissions') ])."\n";
exit;
exit(1);
} else {
OC_Template::printErrorPage(
$l->t('Cannot write into "config" directory!'),
Expand Down Expand Up @@ -530,7 +530,7 @@ public static function init() {
// we can't use the template error page here, because this needs the
// DI container which isn't available yet
print($e->getMessage());
exit();
exit(1);
}

// setup the basic server
Expand Down

0 comments on commit 95a3f9b

Please sign in to comment.