From 231a83d76a0987501e4bb2065aad3bb674d25d37 Mon Sep 17 00:00:00 2001 From: Jeffstein Date: Mon, 12 Jan 2026 19:34:59 -0800 Subject: [PATCH 1/3] Updated server installation command to dnf5 spec for fedora linux servers Updated outdated dnf config-manager addrepo --from-repofile flag to the new dnf5 specification when installing a new server running fedora server. --- app/Actions/Server/InstallDocker.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.php index eb53b32ee..8131ca7b3 100644 --- a/app/Actions/Server/InstallDocker.php +++ b/app/Actions/Server/InstallDocker.php @@ -76,6 +76,8 @@ class InstallDocker $command = $command->merge([$this->getDebianDockerInstallCommand()]); } elseif ($supported_os_type->contains('rhel')) { $command = $command->merge([$this->getRhelDockerInstallCommand()]); + } elseif ($supported_os_type->contains('fedora')) { + $command = $command->merge([$this->getFedoraDockerInstallCommand()]); } elseif ($supported_os_type->contains('sles')) { $command = $command->merge([$this->getSuseDockerInstallCommand()]); } elseif ($supported_os_type->contains('arch')) { @@ -137,6 +139,16 @@ class InstallDocker ')'; } + private function getFedoraDockerInstallCommand(): string + { + return "curl https://releases.rancher.com/install-docker/{$this->dockerVersion}.sh | sh || curl https://get.docker.com | sh -s -- --version {$this->dockerVersion} || (". + 'dnf dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo && '. + 'dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && '. + 'systemctl start docker && '. + 'systemctl enable docker --now'. + ')'; + } + private function getSuseDockerInstallCommand(): string { return "curl https://releases.rancher.com/install-docker/{$this->dockerVersion}.sh | sh || curl https://get.docker.com | sh -s -- --version {$this->dockerVersion} || (". From 1283c994cacf303921a38b36f244a4f2d78415d6 Mon Sep 17 00:00:00 2001 From: Jeffstein Date: Mon, 12 Jan 2026 19:51:47 -0800 Subject: [PATCH 2/3] Fixed dnf5 config-manager addrepo command syntax I updated the dnf5 syntax from 'dnf config-manager addrepo --from-repofile=' to 'dnf config-manager addrepo --from-repofile ' --- scripts/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index d849509aa..a7d75d669 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -594,7 +594,8 @@ if ! [ -x "$(command -v docker)" ]; then "centos" | "fedora" | "rhel") if [ -x "$(command -v dnf5)" ]; then # dnf5 is available - dnf config-manager addrepo --from-repofile=https://download.docker.com/linux/$OS_TYPE/docker-ce.repo --overwrite >/dev/null 2>&1 + dnf config-manager addrepo --from-repofile https://download.docker.com/linux/$OS_TYPE/docker-ce.repo + --overwrite >/dev/null 2>&1 else # dnf5 is not available, use dnf dnf config-manager --add-repo=https://download.docker.com/linux/$OS_TYPE/docker-ce.repo >/dev/null 2>&1 From 530e62ed28f7c274c5d7f0f0e5459d9f7d2da1bc Mon Sep 17 00:00:00 2001 From: Jeffstein Date: Mon, 12 Jan 2026 20:14:27 -0800 Subject: [PATCH 3/3] prepare PR by checking changes deleted duplicate 'dnf' to fix syntax --- app/Actions/Server/InstallDocker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.php index 8131ca7b3..21658ba79 100644 --- a/app/Actions/Server/InstallDocker.php +++ b/app/Actions/Server/InstallDocker.php @@ -142,7 +142,7 @@ class InstallDocker private function getFedoraDockerInstallCommand(): string { return "curl https://releases.rancher.com/install-docker/{$this->dockerVersion}.sh | sh || curl https://get.docker.com | sh -s -- --version {$this->dockerVersion} || (". - 'dnf dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo && '. + 'dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo && '. 'dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin && '. 'systemctl start docker && '. 'systemctl enable docker --now'.