Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Automated Patching

Code Block
languagebashpowershell
titleExample how to apply a patch from a .jar file to an Agent for Windows
linenumberstrue
# invoke PowerShell and switch to the user account that owns the Agent's home directory

# download from URL
Invoke-WebRequest `
    -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.jar' `
    -Outfile js7_agent.2.2.3-PATCH.JS-1984.jar

# apply the patch 
./Install-JS7Agent.ps1 `
    -PatchJar js7_agent.2.2.3-PATCH.JS-1984.jar `
    -Patch JS-1984 `
    -HomeDir $env:ProgramFiles\sos-berlin.com\js7\agent `
    -HttpPort 4445
Code Block
languagebashpowershell
titleExample how to apply a patch from a .tar.gz archive to an Agent for Windows
linenumberstrue
collapsetrue
# invoke PowerShell and switch to the user account that owns the Agent's home directory

# download from URL
Invoke-WebRequest `
    -Uri 'https://download.sos-berlin.com/patches/2.2.3-patch/js7_agent.2.2.3-PATCH.JS-1984.tar.gz' `
    -Outfile js7_agent.2.2.3-PATCH.JS-1984.tar.gz 

# apply the patch
/Install-JS7Agent.ps1 `
    -Tarball js7_agent.2.2.3-PATCH.JS-1984.tar.gz `
    -Patch JS-1984 `
    -HomeDir $env:ProgramFiles\sos-berlin.com\js7\agent `
    -HttpPort 4445

...