INNER CODE UNIT · Shell
ARCH
homebridge/docker-homebridge · raspbian-installer.sh:26
ARCH=$(dpkg --print-architecture)
if [ "$ARCH" != "arm64" ] && [ "$ARCH" != "amd64" ]; then
echo "$LP ERROR: this is a $ARCH (32-bit) system. Install the 64-bit version of Raspberry Pi OS and run this script again."
exit 1
fi
echo "$LP Installing on $PRETTY_NAME ($ARCH)..."
# Step 1: Install Docker and the Docker Compose plugin from Docker's own repository
# https://docs.docker.com/engine/install/debian/
if command -v docker >/dev/null 2>&1 && docker compose version >/dev/null 2>&1; then
echo "$LP Docker and Docker Compose are already installed"
else
echo "$LP Installing Docker..."
sudo apt-get update