Bring the share's common scripts under version control
Sixteen files that run on every shopfloor PC existed only on the SFLD share. The cost showed up while debugging the NTLARS backup: the script that posts to ShopDB could not be read, reviewed or diffed, so its behaviour was inferred from log output for most of a day. It turned out to hold a silent fallback that had been governing the whole fleet for months. Imported as-is from tsgwp00525-v2, no edits: lib/ShopdbBackupClient.psm1 the shared backup client scripts/Backup-NtlarsSettings.ps1 converted to use it scripts/Set-ShopdbCollectorKey.ps1 collector credential delivery scripts/Test-RegExport.ps1 exercises the .reg codec with mocks scripts/Set-EventSaver*.ps1 kiosk power / screensaver / disable scripts/Setup-OpenText.* OpenText install + toolbar scripts/Migrate-PCType.ps1, Select-KioskType.ps1, Set-FmsHostsEntry.ps1, scripts/ensure-vnc-firewall.ps1, Install-AcroReader.cmd, Install-Oracle11r2.cmd lib/Install-FromManifest.ps1 is also updated from the share, which was 37 lines AHEAD of this repo and purely additive: the Add-EnforceResult reporting added during the kiosk API cutover, done live and never committed back. Nothing was removed. Checked for embedded secrets before committing; there are none. Set-ShopdbCollectorKey deliberately reads its token from a sibling file on the share rather than holding it, so the script is safe to track. The share remains what actually runs. This makes it reviewable, and makes the next drift visible as a diff rather than a surprise.
This commit is contained in:
15
playbook/shopfloor-setup/common/scripts/Setup-OpenText.cmd
Executable file
15
playbook/shopfloor-setup/common/scripts/Setup-OpenText.cmd
Executable file
@@ -0,0 +1,15 @@
|
||||
@echo off
|
||||
REM Setup-OpenText.cmd - launcher for Setup-OpenText.ps1.
|
||||
REM
|
||||
REM Lives in <type>/scripts/. Setup-OpenText.ps1 expects to find the four
|
||||
REM OpenText binaries (OpenTextHostExplorer15x64.msi/.cab/.msp + ShopFloorx64.mst)
|
||||
REM plus version.txt in $SourceDir. We pass ..\apps\opentext\ explicitly so the
|
||||
REM script doesn't fall back to its $PSScriptRoot default (which would be the
|
||||
REM scripts/ dir, where the binaries don't live).
|
||||
REM
|
||||
REM Mirrors the Install-AcroReader.cmd / Install-Oracle11r2.cmd pattern of
|
||||
REM script-in-scripts, payload-in-apps. Called by Install-FromManifest.ps1
|
||||
REM (Type=CMD); exit code surfaces back to the enforcer.
|
||||
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Setup-OpenText.ps1" -SourceDir "%~dp0..\apps\opentext"
|
||||
exit /b %errorlevel%
|
||||
Reference in New Issue
Block a user