Add an HTTPS installer for the OPNsense agent and show its command in the WebUI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-21 09:25:51 +01:00
co-authored by Claude Opus 5.5
parent 20bf40adce
commit 7201b18300
9 changed files with 468 additions and 10 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# OPNsense (FreeBSD amd64). Usage as root: sh opnsense.sh https://bootstrap.example
set -eu
umask 077
if [ "$(id -u)" != 0 ]; then
echo 'Bitte als root ausfuehren (Konsole: Option 8, Shell).' >&2; exit 1
fi
if [ "$(uname -s)" != FreeBSD ] || [ ! -x /usr/local/sbin/opnsense-version ] || [ ! -x /usr/local/bin/python3 ]; then
echo 'Dieses Installationsskript ist nur fuer OPNsense.' >&2; exit 1
fi
work=$(mktemp -d /var/tmp/discovery-install.XXXXXX)
trap 'rm -rf "$work"' EXIT
cat >"$work/install-files.sh" <<'RMM_OPNSENSE_FILES'