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:
@@ -304,6 +304,21 @@ RMM_BOOTSTRAP_PYTHON
|
||||
)
|
||||
}),
|
||||
)
|
||||
.route(
|
||||
"/install/opnsense.sh",
|
||||
get(|| async {
|
||||
(
|
||||
[("content-type", "text/x-shellscript")],
|
||||
concat!(
|
||||
include_str!("bootstrap/opnsense.sh"),
|
||||
include_str!("../../../deploy/opnsense/install-dev.sh"),
|
||||
"RMM_OPNSENSE_FILES\ncat >\"$work/install.py\" <<'RMM_OPNSENSE_PYTHON'\n",
|
||||
include_str!("bootstrap/opnsense_install.py"),
|
||||
"RMM_OPNSENSE_PYTHON\n/usr/local/bin/python3 -I \"$work/install.py\" \"$work/install-files.sh\" \"$@\"\n"
|
||||
),
|
||||
)
|
||||
}),
|
||||
)
|
||||
.route(
|
||||
"/install/windows.ps1",
|
||||
get(|| async {
|
||||
@@ -319,6 +334,8 @@ RMM_BOOTSTRAP_PYTHON
|
||||
get(bootstrap::artifact),
|
||||
)
|
||||
.route("/agent/v1/bootstrap/updater", get(bootstrap::updater))
|
||||
.route("/agent/v1/bootstrap/opnsense/current", get(bootstrap::opnsense::current))
|
||||
.route("/agent/v1/bootstrap/opnsense/files/{name}", get(bootstrap::opnsense::file))
|
||||
.route("/agent/v1/releases/current", get(current))
|
||||
.route("/agent/v1/releases/installed", get(installed))
|
||||
.route("/agent/v1/releases/device-trust", get(bootstrap::device_trust))
|
||||
|
||||
Reference in New Issue
Block a user