fix: empty db conf

feat: add listen_addresses to postgresql if its missing in the custom conf
This commit is contained in:
Andras Bacsai
2024-05-07 12:35:24 +02:00
parent d0e9d58a43
commit 2b422a542a
6 changed files with 17 additions and 15 deletions

View File

@@ -100,7 +100,7 @@ class StartRedis
if (count($volume_names) > 0) {
$docker_compose['volumes'] = $volume_names;
}
if (!is_null($this->database->redis_conf)) {
if (!is_null($this->database->redis_conf) || !empty($this->database->redis_conf)) {
$docker_compose['services'][$container_name]['volumes'][] = [
'type' => 'bind',
'source' => $this->configuration_dir . '/redis.conf',
@@ -166,7 +166,7 @@ class StartRedis
}
private function add_custom_redis()
{
if (is_null($this->database->redis_conf)) {
if (is_null($this->database->redis_conf) || empty($this->database->redis_conf)) {
return;
}
$filename = 'redis.conf';