#!/bin/sh # Fuyonet Panel Installer Bootstrap # THIS FILE MUST STAY sh-COMPATIBLE! Do NOT replace with autoinstall.sh! # It downloads the full installer and runs it with bash. TMPF=$(mktemp) if ! curl -fsSL https://install.fuyonet.com/fuyonet-panel/autoinstall.sh -o "$TMPF" || [ ! -s "$TMPF" ]; then echo "Fuyonet installer: download of autoinstall.sh failed (network/DNS/TLS?)" >&2 rm -f "$TMPF" exit 1 fi if ! head -c 2 "$TMPF" | grep -q '#!'; then echo "Fuyonet installer: unexpected content from install.fuyonet.com, aborting" >&2 rm -f "$TMPF" exit 1 fi bash "$TMPF" "$@" RET=$? rm -f "$TMPF" exit $RET