From d0a59360bf31b44e4db63149bc6678717f6119e4 Mon Sep 17 00:00:00 2001 From: Hendra Manudinata Date: Tue, 13 May 2025 16:33:36 +0700 Subject: [PATCH] install: Add support for postmarketOS (#5608) postmarketOS is a Linux distributon based on Alpine, targetting mobile devices to extend its lifespan. Coolify has been tested to work with postmarketOS, as long as the device supports running Docker (mostly by modifying kernel configuration). --- scripts/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index bc3b5b084..44c13a41f 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -297,7 +297,7 @@ if [ -z "$LATEST_REALTIME_VERSION" ]; then fi case "$OS_TYPE" in -arch | ubuntu | debian | raspbian | centos | fedora | rhel | ol | rocky | sles | opensuse-leap | opensuse-tumbleweed | almalinux | amzn | alpine) ;; +arch | ubuntu | debian | raspbian | centos | fedora | rhel | ol | rocky | sles | opensuse-leap | opensuse-tumbleweed | almalinux | amzn | alpine | postmarketos) ;; *) echo "This script only supports Debian, Redhat, Arch Linux, Alpine Linux, or SLES based operating systems for now." exit @@ -326,7 +326,7 @@ case "$OS_TYPE" in arch) pacman -Sy --noconfirm --needed curl wget git jq openssl >/dev/null || true ;; -alpine) +alpine | postmarketos) sed -i '/^#.*\/community/s/^#//' /etc/apk/repositories apk update >/dev/null apk add curl wget git jq openssl >/dev/null @@ -388,7 +388,7 @@ if [ "$SSH_DETECTED" = "false" ]; then systemctl enable sshd >/dev/null 2>&1 systemctl start sshd >/dev/null 2>&1 ;; - alpine) + alpine | postmarketos) apk add openssh >/dev/null rc-update add sshd default >/dev/null 2>&1 service sshd start >/dev/null 2>&1 @@ -472,7 +472,7 @@ if ! [ -x "$(command -v docker)" ]; then systemctl start docker >/dev/null 2>&1 systemctl enable docker >/dev/null 2>&1 ;; - "alpine") + "alpine" | "postmarketos") apk add docker docker-cli-compose >/dev/null 2>&1 rc-update add docker default >/dev/null 2>&1 service docker start >/dev/null 2>&1