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

@ -653,13 +653,7 @@ actions:
- cmd[cp]: - cmd[cp]:
user: root user: root
commands: commands:
- | - php /home/litespeed/mbmanager/scripts/toggle_opcache.php disable
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
- restartNodes: - restartNodes:
- nodeGroup: "cp" - nodeGroup: "cp"
reboot: true reboot: true