Fix behaviour when not running with s3 store

This commit is contained in:
Greyscale 2022-05-05 12:34:04 +02:00
parent 920d362079
commit 9fe0bf0310
No known key found for this signature in database
GPG key ID: EF017054C3E9CD59

View file

@ -158,7 +158,7 @@ class Bouncer
private Environment $twig;
private Filesystem $configFilesystem;
private Filesystem $certificateStoreLocal;
private ?Filesystem $certificateStoreRemote;
private ?Filesystem $certificateStoreRemote = null;
private Logger $logger;
private string $instanceStateHash = '';
private array $fileHashes;
@ -195,7 +195,7 @@ class Bouncer
$this->certificateStoreLocal = new Filesystem(new LocalFilesystemAdapter('/etc/letsencrypt'));
// Set up Remote certificate store, if configured
if ($this->environment['BOUNCER_S3_BUCKET']) {
if (isset($this->environment['BOUNCER_S3_BUCKET'])) {
$this->certificateStoreRemote = new Filesystem(
new AwsS3V3Adapter(
new S3Client([