If there is no secrets, just run like a normal system.

This commit is contained in:
Greyscale 2023-03-22 08:12:05 +01:00
parent 767c08abd4
commit 989056d0b9
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -44,6 +44,12 @@ class Sync
$this->storageFilesystem = new StorageFilesystem();
$this->localFilesystem = new LocalFilesystem();
if(!isset($environment['S3_API_KEY']) || !isset($environment['S3_API_SECRET'])){
$this->logger->warning(sprintf('%s S3_API_KEY/S3_API_SECRET missing, so running in non-storing mode like a normal database.', Emoji::CHARACTER_NERD_FACE));
sleep(60);
exit;
}
if ($this->args->hasOpt('postgres') || isset($environment['PG_VERSION'])) {
// Postgres mode is enabled if --postgres is set, or PG_VERSION envvar is set,
// which it is when we're built ontop of the postgres docker container