diff --git a/src/EventSubscriber/UpdateEventSubscriber.php b/src/EventSubscriber/UpdateEventSubscriber.php index 9c629695103..dd5077576d8 100644 --- a/src/EventSubscriber/UpdateEventSubscriber.php +++ b/src/EventSubscriber/UpdateEventSubscriber.php @@ -66,6 +66,12 @@ public static function getSubscribedEvents(): array */ public function validateCentreonWebVersionOrFail(RequestEvent $event): void { + $this->debug('Checking if database configuration file exists to know if centreon is already installed'); + if (! file_exists(_CENTREON_ETC_ . DIRECTORY_SEPARATOR . 'centreon.conf.php')) { + $this->debug('Centreon database configuration file not found'); + return; + } + $this->debug('Checking if route matches updates endpoint'); if ( $event->getRequest()->getMethod() === Request::METHOD_PATCH