Revert disable_opcache to simple single-line command - avoid JPS YAML parsing issues

main
Anthony 2026-02-28 15:22:41 +08:00
parent a1c5f07f87
commit 242af7f86f
1 changed files with 2 additions and 8 deletions

View File

@ -652,14 +652,8 @@ actions:
disable_opcache:
- cmd[cp]:
user: root
commands:
- |
set -euo pipefail
OUTPUT=$(php /home/litespeed/mbmanager/scripts/toggle_opcache.php disable 2>&1)
echo "$OUTPUT"
if echo "$OUTPUT" | grep -q '"status".*:.*"error"'; then
exit 1
fi
commands:
- php /home/litespeed/mbmanager/scripts/toggle_opcache.php disable
- restartNodes:
- nodeGroup: "cp"
reboot: true