[COMMAND] Fix 'bin/console doctrine:database:create' by only loading defaults if we have a connection

This commit is contained in:
Hugo Sales 2020-08-13 01:47:14 +00:00 committed by Hugo Sales
parent e3e9ece614
commit 213cfe5285
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -132,7 +132,9 @@ class GNUsocial implements EventSubscriberInterface
Mailer::setMailer($this->mailer);
Router::setRouter($this->router, $this->url_generator);
DefaultSettings::setDefaults();
if (isset($_ENV['HTTPS']) || isset($_ENV['HTTP_HOST'])) {
DefaultSettings::setDefaults();
}
Cache::setupCache();