MCPcopy
hub / github.com/Dokploy/dokploy / installUtilities

Function installUtilities

packages/server/src/setup/server-setup.ts:465–503  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

463`;
464
465const installUtilities = () => `
466
467 case "$OS_TYPE" in
468 arch)
469 $SUDO_CMD pacman -Sy --noconfirm --needed curl wget git git-lfs jq openssl >/dev/null || true
470 ;;
471 alpine)
472 $SUDO_CMD sed -i '/^#.*\/community/s/^#//' /etc/apk/repositories
473 $SUDO_CMD apk update >/dev/null
474 $SUDO_CMD apk add curl wget git git-lfs jq openssl sudo unzip tar >/dev/null
475 ;;
476 ubuntu | debian | raspbian)
477 export DEBIAN_FRONTEND=noninteractive
478 $SUDO_CMD apt-get update -y >/dev/null
479 $SUDO_CMD apt-get install -y unzip curl wget git git-lfs jq openssl >/dev/null
480 ;;
481 centos | fedora | rhel | ol | rocky | almalinux | opencloudos | amzn)
482 if [ "$OS_TYPE" = "amzn" ]; then
483 $SUDO_CMD dnf install -y wget git git-lfs jq openssl >/dev/null
484 else
485 if ! command -v dnf >/dev/null; then
486 $SUDO_CMD yum install -y dnf >/dev/null
487 fi
488 if ! command -v curl >/dev/null; then
489 $SUDO_CMD dnf install -y curl >/dev/null
490 fi
491 $SUDO_CMD dnf install -y wget git git-lfs jq openssl unzip >/dev/null
492 fi
493 ;;
494 sles | opensuse-leap | opensuse-tumbleweed)
495 $SUDO_CMD zypper refresh >/dev/null
496 $SUDO_CMD zypper install -y curl wget git git-lfs jq openssl >/dev/null
497 ;;
498 *)
499 echo "This script only supports Debian, Redhat, Arch Linux, or SLES based operating systems for now."
500 exit
501 ;;
502 esac
503`;
504
505const installDocker = () => `
506

Callers 1

defaultCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected