PC set-up: one line per PC (/setup/<name>.ps1), the admin laptop always let in, and the admin check no longer breaks the script
- the inserted administrator check split the header comment, leaving '} for ... run ONCE' as code: WS and SC
join.ps1 failed to parse (Windows' parser: Missing opening '(' after keyword 'for'); now after the whole line
- site.admin_ips / admin_keys (laptop 10.6.7.38, fixed in UniFi) go into every PC script's firewall rule and key
files, and into the Mac join line, so running a set-up again never shuts the laptop out
- scripts verified by Windows' own PowerShell parser on the NA Lighting PC
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ class TestScripts(unittest.TestCase):
|
||||
text = scripts.windows_setup(CFG, "lighting")
|
||||
self.assertIn("$Key = '%s'" % KEY[0], text)
|
||||
self.assertIn("$KeyMark = 'status-panel@NA-Ingest'", text)
|
||||
self.assertIn("$IngestIPs = @('10.1.1.1', '10.6.3.222')", text)
|
||||
self.assertIn("$IngestIPs = @('10.1.1.1', '10.6.3.222', '10.6.7.38')", text) # NA Ingest, then the admin laptop
|
||||
for exe in ("Vista.exe", "Arena.exe", "rtpMIDI.exe"):
|
||||
self.assertIn("(Find-Exe '%s')" % exe, text)
|
||||
self.assertIn("foreach ($svc in @('rtpMIDIService'))", text)
|
||||
|
||||
Reference in New Issue
Block a user