#!/usr/bin/env bash # canonic federation install — OS-autodetect bootstrap. # curl -fsSL https://founderof.ai/install/ | sh → detects your OS + runs the matching installer. # Per canonic-canonic/MAGIC/SERVICES/CONTAINER/CANON.md § Install Autodetect Bootstrap. # _generated autodetect bootstrap — DO NOT EDIT — run gen-harness-manifest. # POSIX-safe (pipes to `sh` = dash on Debian/Ubuntu); no bashisms, no pipefail. set -eu uname_s="$(uname -s 2>/dev/null || echo unknown)" case "$uname_s" in Linux) # Synology DSM is Linux but bootstraps via Container Manager — distinguish it. if [ -f /etc/synoinfo.conf ] || [ -d /usr/syno ]; then os="synology"; else os="linux"; fi ;; Darwin) os="mac" ;; *) printf '%s\n' "canonic install: unsupported OS '${uname_s}' — supported: Linux, macOS (Darwin), Synology (DSM)." >&2 printf '%s\n' "try a specific target, e.g.: curl -fsSL https://founderof.ai/install/linux | sh" >&2 exit 1 ;; esac printf '%s\n' "── canonic install: detected ${os} (${uname_s}) — fetching the ${os} installer from founderof.ai ──" curl -fsSL "https://founderof.ai/install/${os}" | sh