An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: check each required binaries one-by-one
Andras Bacsai3f9b0643ee74
diff --git a/app/Actions/Server/InstallDocker.php b/app/Actions/Server/InstallDocker.phpindex 1db766a881..d1db588cd3 100644--- a/app/Actions/Server/InstallDocker.php+++ b/app/Actions/Server/InstallDocker.php@@ -48,20 +48,28 @@ class InstallDockerif ($supported_os_type->contains('debian')) {$command = $command->merge(["echo 'Installing Prerequisites...'",- "command -v jq >/dev/null || apt-get update -y",- "command -v jq >/dev/null || apt install -y curl wget git jq",-+ "apt-get update -y",+ "command -v curl >/dev/null || apt install -y curl",+ "command -v wget >/dev/null || apt install -y wget",+ "command -v git >/dev/null || apt install -y git",+ "command -v jq >/dev/null || apt install -y jq",]);} else if ($supported_os_type->contains('rhel')) {$command = $command->merge(["echo 'Installing Prerequisites...'",- "command -v jq >/dev/null || dnf install -y curl wget git jq",+ "command -v curl >/dev/null || dnf install -y curl",+ "command -v wget >/dev/null || dnf install -y wget",+ "command -v git >/dev/null || dnf install -y git",+ "command -v jq >/dev/null || dnf install -y jq",]);} else if ($supported_os_type->contains('sles')) {$command = $command->merge(["echo 'Installing Prerequisites...'",- "command -v jq >/dev/null || zypper update -y",- "command -v jq >/dev/null || zypper install -y curl wget git jq",+ " zypper update -y",+ "command -v curl >/dev/null || zypper install -y curl",+ "command -v wget >/dev/null || zypper install -y wget",+ "command -v git >/dev/null || zypper install -y git",+ "command -v jq >/dev/null || zypper install -y jq",]);} else {throw new \Exception('Unsupported OS');