BPRT sync: point the page and docstrings at static/Sync-BPRT.ps1

Follow-up to 92f1e62, which moved the file but missed these references.
This commit is contained in:
cproudlock
2026-10-13 17:12:51 -04:00
parent 92f1e62966
commit 6187219378
3 changed files with 6 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ packages, the Office zips and the bulk-enroll orchestrator scripts. The vendor
keeps it current on the user's GE work PC with MediaCreator Lite; this server
is only reachable from there over the GE network (this webapp and SSH, no
SMB), and never reaches out itself. So the user runs
scripts/windows/Sync-BPRT.ps1 there, which:
webapp/static/Sync-BPRT.ps1 there (downloadable from the BPRT page), which:
1. GETs manifest.json (path, size, sha256 of every vendor file here);
2. hashes its own copy and uploads only new or changed files, plus a
@@ -1434,11 +1434,10 @@ def active_imaging():
def sync_script():
"""Path of scripts/windows/Sync-BPRT.ps1 when the webapp can serve it."""
"""Path of static/Sync-BPRT.ps1 (shipped with the webapp) when it can be served."""
here = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
for p in (os.environ.get("BPRT_SYNC_SCRIPT", ""),
os.path.join(here, "static", "Sync-BPRT.ps1"),
os.path.join(here, "..", "scripts", "windows", "Sync-BPRT.ps1")):
os.path.join(here, "static", "Sync-BPRT.ps1")):
if p and os.path.isfile(p):
return os.path.abspath(p)
return None

View File

@@ -361,8 +361,8 @@
<ol class="mb-2">
<li>Let MediaCreator Lite finish updating its cache on the GE work PC.</li>
<li>Get <span class="mono">Sync-BPRT.ps1</span>
{% if script_available %}(<a href="{{ url_for('bprt_sync.script') }}">download it from here</a>, or from the pxe repo, <span class="mono">scripts/windows/</span>)
{% else %}from the pxe repo, <span class="mono">scripts/windows/Sync-BPRT.ps1</span>{% endif %},
{% if script_available %}(<a href="{{ url_for('bprt_sync.script') }}">download it from here</a>)
{% else %}from the pxe repo, <span class="mono">webapp/static/Sync-BPRT.ps1</span>{% endif %},
and run it in Windows PowerShell. Look first with <span class="mono">-DryRun</span> (nothing is uploaded):
<pre class="cmd mono small">powershell -ExecutionPolicy Bypass -File .\Sync-BPRT.ps1 -DryRun
powershell -ExecutionPolicy Bypass -File .\Sync-BPRT.ps1</pre>

View File

@@ -1,6 +1,6 @@
"""Updates > BPRT: bring the vendor bulk-enroll folder over from the work PC.
The work PC runs scripts/windows/Sync-BPRT.ps1, which reads manifest.json
The work PC runs Sync-BPRT.ps1 (webapp/static, downloadable here), which reads manifest.json
here, uploads the new and changed files over SSH into BPRT-incoming/<batch>/
and points the user at this page. Here a batch is validated, its diff shown,
and activated (a new BPRT built from hard links and swapped in by rename);