#!/bin/bash # Incaine Panel — download, verify and run the installer. # curl -fsSL https://incaine.com/panel/install.sh | bash # curl -fsSL https://incaine.com/panel/install.sh | bash -s -- --user mysites --ftp set -euo pipefail VERSION="0.8.3" SHA256="fe09c0b267b10b11c4f2deebe65f460b2ce33fcf5af70157fa3d777ed750283c" URL="https://incaine.com/panel/incaine-panel-$VERSION.tar.gz" [ "$(id -u)" = 0 ] || { echo "Please run as root (e.g. sudo -i first)." >&2; exit 1; } command -v curl >/dev/null || dnf install -y -q curl tmp=$(mktemp -d); trap 'rm -rf "$tmp"' EXIT echo "Downloading Incaine Panel $VERSION ..." curl -fsSL "$URL" -o "$tmp/panel.tar.gz" echo "$SHA256 $tmp/panel.tar.gz" | sha256sum -c --quiet - || { echo "Checksum mismatch - download corrupted or tampered with. Aborting." >&2; exit 1; } tar -xzf "$tmp/panel.tar.gz" -C "$tmp" # when piped through curl, give the installer the terminal back for its question if [ -t 1 ] && [ -r /dev/tty ]; then bash "$tmp/incaine-panel-$VERSION/install/install.sh" "$@" < /dev/tty; exit $?; fi bash "$tmp/incaine-panel-$VERSION/install/install.sh" --yes "$@"