From 7d26e8c934a3efea2993280ab45d6d5f2388ae52 Mon Sep 17 00:00:00 2001 From: "Buster \"Silver Eagle\" Neece" Date: Wed, 9 Mar 2022 23:01:56 -0600 Subject: [PATCH] Fix code problem on installer and remove missing volume on docker.sh --- docker.sh | 2 -- src/Installer/Command/InstallCommand.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docker.sh b/docker.sh index 6d557cea1..b285dcd8d 100755 --- a/docker.sh +++ b/docker.sh @@ -431,7 +431,6 @@ install() { docker volume rm azuracast_www_vendor 2>/dev/null || true docker volume rm azuracast_tmp_data 2>/dev/null || true - docker volume rm azuracast_redis_data 2>/dev/null || true docker-compose run --rm web -- azuracast_install "$@" docker-compose up -d @@ -554,7 +553,6 @@ update() { docker volume rm azuracast_www_vendor docker volume rm azuracast_tmp_data - docker volume rm azuracast_redis_data docker-compose run --rm web -- azuracast_update "$@" docker-compose up -d diff --git a/src/Installer/Command/InstallCommand.php b/src/Installer/Command/InstallCommand.php index d4d8fb130..4ab1c613c 100644 --- a/src/Installer/Command/InstallCommand.php +++ b/src/Installer/Command/InstallCommand.php @@ -330,7 +330,7 @@ class InstallCommand extends Command if (!empty($yamlPorts)) { if ($isStandalone) { $existingPorts = []; - foreach ($yaml['services']['ports'] as $port) { + foreach ($yaml['services']['web']['ports'] as $port) { if (str_starts_with('$', $port)) { $existingPorts[] = $port; }