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:
@@ -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
|
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
|
is only reachable from there over the GE network (this webapp and SSH, no
|
||||||
SMB), and never reaches out itself. So the user runs
|
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);
|
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
|
2. hashes its own copy and uploads only new or changed files, plus a
|
||||||
@@ -1434,11 +1434,10 @@ def active_imaging():
|
|||||||
|
|
||||||
|
|
||||||
def sync_script():
|
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__)))
|
here = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
for p in (os.environ.get("BPRT_SYNC_SCRIPT", ""),
|
for p in (os.environ.get("BPRT_SYNC_SCRIPT", ""),
|
||||||
os.path.join(here, "static", "Sync-BPRT.ps1"),
|
os.path.join(here, "static", "Sync-BPRT.ps1")):
|
||||||
os.path.join(here, "..", "scripts", "windows", "Sync-BPRT.ps1")):
|
|
||||||
if p and os.path.isfile(p):
|
if p and os.path.isfile(p):
|
||||||
return os.path.abspath(p)
|
return os.path.abspath(p)
|
||||||
return None
|
return None
|
||||||
|
|||||||
@@ -361,8 +361,8 @@
|
|||||||
<ol class="mb-2">
|
<ol class="mb-2">
|
||||||
<li>Let MediaCreator Lite finish updating its cache on the GE work PC.</li>
|
<li>Let MediaCreator Lite finish updating its cache on the GE work PC.</li>
|
||||||
<li>Get <span class="mono">Sync-BPRT.ps1</span>
|
<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>)
|
{% if script_available %}(<a href="{{ url_for('bprt_sync.script') }}">download it from here</a>)
|
||||||
{% else %}from the pxe repo, <span class="mono">scripts/windows/Sync-BPRT.ps1</span>{% endif %},
|
{% 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):
|
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
|
<pre class="cmd mono small">powershell -ExecutionPolicy Bypass -File .\Sync-BPRT.ps1 -DryRun
|
||||||
powershell -ExecutionPolicy Bypass -File .\Sync-BPRT.ps1</pre>
|
powershell -ExecutionPolicy Bypass -File .\Sync-BPRT.ps1</pre>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""Updates > BPRT: bring the vendor bulk-enroll folder over from the work PC.
|
"""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>/
|
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 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);
|
and activated (a new BPRT built from hard links and swapped in by rename);
|
||||||
|
|||||||
Reference in New Issue
Block a user