Controller: add help.sh to the Maintenance Scripts.

A new wrolpi-help-script.service oneshot runs /opt/wrolpi/help.sh so the
Controller UI can run system diagnostics and show the output from the
journal.  The confirmation modal hides the warnings block for scripts
with no warnings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Roland 2026-07-09 15:29:01 -06:00 • committed by lrnselfreliance
parent d6b019c24e
commit e42e4ed06e
4 changed files with 29 additions and 1 deletions

View file

@ -21,6 +21,14 @@ logger = logging.getLogger(__name__)
# - type: "branch" (auto-populates with current git branch) or "text"
# - required: Whether the parameter must have a value
AVAILABLE_SCRIPTS = {
"help": {
"name": "help",
"display_name": "System Diagnostics",
"description": "Runs help.sh which checks WROLPi services, certificates, database, and dependencies."
" Read-only; changes nothing.",
"service_name": "wrolpi-help-script.service",
"warnings": [],
},
"repair": {
"name": "repair",
"display_name": "Repair WROLPi",