From ec27d61a2536827a9bcba3b1757f445405091b39 Mon Sep 17 00:00:00 2001 From: unimatrix Date: Tue, 17 Nov 2026 13:19:25 +0000 Subject: [PATCH] fix(boards): run CLI provisioning from the approved release --- website/ops/publish-system-board-repair.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/website/ops/publish-system-board-repair.py b/website/ops/publish-system-board-repair.py index 268a1642..3279acf3 100644 --- a/website/ops/publish-system-board-repair.py +++ b/website/ops/publish-system-board-repair.py @@ -12,10 +12,9 @@ import subprocess import tempfile EXPECTED = { - 'provision-system-boards.php': 'b866ac27a8caf56d89307d386a9eac4a977f524646f4b2251e750d24e2fe6b5c', 'system-board-membership.php': '8d9fc7126a229b2ca0f6033ec0647946e418558981af75eb731ef5526f63a15f', } -FILES = ['system-board-provision.php', 'provision-system-boards.php', 'system-board-membership.php'] +FILES = ['system-board-provision.php', 'system-board-membership.php'] PROMOTION_STATE = Path('/mnt/HC_Volume_107481500/dunegit/ci/promotion') @@ -56,7 +55,7 @@ def main(): if not (target / 'global.php').is_file(): raise RuntimeError('Native MyBB installation missing') changes = publication_changes(source, target) - for name in FILES: + for name in [*FILES, 'provision-system-boards.php']: subprocess.run(['php', '-l', str(source / name)], check=True, capture_output=True) for name in ['test-system-board-policy.php', 'test-system-board-provision.php']: subprocess.run(['php', str(source / name)], check=True, capture_output=True) @@ -89,7 +88,7 @@ def main(): '--env-file=/home/dunerealms/.config/dunerealms.env', str(release / 'ops/system-board-snapshot.mjs')], check=True, capture_output=True, text=True) - result = subprocess.run(['php', str(target / 'provision-system-boards.php')], + result = subprocess.run(['php', str(source / 'provision-system-boards.php')], input=snapshot.stdout, check=True, capture_output=True, text=True) # Existing native permission tests inspect real MyBB without editing users. subprocess.run(['php', str(source / 'test-system-board-native.php')], check=True, capture_output=True)