Преглед на файлове

fix: use exec for the disk space webhook example

Webhook-triggered actions cannot use shell:, so the example webhook on
"Check disk space" was rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jamesread преди 1 ден
родител
ревизия
4946524756
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      config.yaml

+ 1 - 1
config.yaml

@@ -27,7 +27,7 @@ actions:
   - title: Check disk space
   - title: Check disk space
     acls: [guest_actions]
     acls: [guest_actions]
     icon: disk
     icon: disk
-    shell: df -h /
+    exec: ["df", "-h", "/"]
     onclick: execution-dialog
     onclick: execution-dialog
     # Second webhook example: POST /webhooks?demo=disk-space
     # Second webhook example: POST /webhooks?demo=disk-space
     execOnWebhook:
     execOnWebhook: