Introduction
JS7 supports automated installation and updates from Installation Scripts:
- The documentation of the YADE Installation Script is available from JS7 - PowerShell Installation Script - Install-JS7YADE.ps1.
- Installation Scripts are available for download from (verify signed scripts) JS7 - Download.
- Considering the fact that PowerShell for Unix based environments misses support for
sudo
the YADE Installation Script does not own directories to other user accounts. Therefore below examples do not make use of--home-owner
and--data-owner
arguments that are available from the Unix Shell version of the Installation Script with JS7 - Unix Shell Installation Script - js7_install_yade.sh.
Install or Update
Install YADE for Unix
Install or Update from Download
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -Release 2.8.0 ` -HomeDir /home/sos/yade ` -MakeDirs # downloads the release tarball from the SOS Web Site # creates the home directory if it does not exist # extracts the tarball to the YADE's home directory
Install or Update from Tarball
Example for use of Installation Script
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.8/js7_yade_unix.2.8.0.tar.gz' ` -Outfile /tmp/js7_yade_unix.2.8.0.tar.gz ./Install-JS7YADE.ps1 ` -Tarball /tmp/js7_yade_unix.2.8.0.tar.gz ` -HomeDir /home/sos/yade ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # creates the home directory if it does not exist # extracts the tarball to the YADE's home directory
Install or Update for separate Home and Data Directories
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -Release 2.8.0 ` -HomeDir /opt/sos-berlin.com/js7/yade ` -Data /var/sos-berlin.com/js7/yade ` -MakeDirs # downloads the release tarball from the SOS Web Site # suggests use of separate home and data directories for configuration data, log data etc. # creates the home and data directories if they do not exist # extracts the tarball to the YADE's home directory
Install YADE for Windows
Install or Update from Download
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -Release 2.8.0 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" ` -Data "C:\ProgramData\sos-berlin.com\js7\yade" ` -MakeDirs # downloads the release tarball from the SOS Web Site # creates the home and data directories if they doe not exist # extracts the tarball to the YADE's home directory
Install or Update from .zip Archive
Example for use of Installation Script
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/JobScheduler.2.5/js7_yade_windows.2.8.0.zip' ` -Outfile C:\tmp\js7_yade_windows.2.8.0.zip ./Install-JS7YADE.ps1 ` -Tarball C:\tmp\js7_yade_windows.2.8.0.zip ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" ` -Data "C:\ProgramData\sos-berlin.com\js7\yade" ` -MakeDirs # downloads the release tarball from the SOS Web Site using Invoke-WebRequest # creates the home directory if it does not exist # extracts the tarball to the YADE's home directory
Patch
Patch YADE for Unix
Patch from Download
Example for use of Agent Installation Script
./Install-JS7YADE.ps1 ` -Release 2.8.0 ` -Patch YADE-1984 ` -HomeDir /home/sos/yade # downloads the patch tarball from the SOS Web Site # extracts the patch tarball to the YADE's home directory # stores the patch files to the YADE's <home>/lib/patches sub-directory
Patch from Tarball
Example for use of Agent Installation Script
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.8.0-patch/js7_yade.2.8.0-PATCH.YADE-1984.tar.gz' ` -Outfile /tmp/js7_yade.2.8.0-PATCH.YADE-1984.tar.gz ./Install-JS7YADE.ps1 ` -Tarball /tmp/js7_yade.2.8.0-PATCH.YADE-1984.tar.gz ` -Patch YADE-1984 ` -HomeDir /home/sos/yade # downloads the patch tarball from the SOS Web Site using Invoke-WebRequest # extracts the patch tarball to the YADE's home directory # stores patch files to the YADE's <home>/lib/patches sub-directory
Patch from .jar File
Example for use of Installation Script
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.8.0-patch/js7_yade.2.8.0-PATCH.YADE-1984.jar' ` -Outfile /tmp/js7_yade.2.8.0-PATCH.YADE-1984.jar ./Install-JS7YADE.ps1 ` -PatchJar /tmp/js7_yade.2.8.0-PATCH.YADE-1984.jar ` -Patch YADE-1984 ` -HomeDir /home/sos/yade # downloads the patch .jar file from the SOS Web Site using Invoke-WebRequest # stores patch files to the YADE's <home>/lib/patches sub-directory
Patch YADE for Windows
Patch from Download
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -Release 2.8.0 ` -Patch YADE-1984 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" # downloads the patch tarball from the SOS Web Site # extracts the patch files to the YADE's <home>\lib\patches sub-directory
Patch from Tarball
Example for use of Installation Script
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.8.0-patch/js7_yade.2.8.0-PATCH.YADE-1984.tar.gz' ` -Outfile C:\tmp\js7_yade.2.8.0-PATCH.YADE-1984.tar.gz ./Install-JS7YADE.ps1 ` -Tarball "C:\tmp\js7_yade.2.8.0-PATCH.YADE-1984.tar.gz" ` -Patch YADE-1984 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" # downloads the patch tarball from the SOS Web Site using Invoke-WebRequest # extracts patch files to the YADE's <home>\lib\patches sub-directory
Patch from .jar File
Example for use of Installation Script
Invoke-WebRequest ` -Uri 'https://download.sos-berlin.com/patches/2.8.0-patch/js7_yade.2.8.0-PATCH.YADE-1984.jar' ` -Outfile C:\tmp\js7_yade.2.8.0-PATCH.YADE-1984.jar ./Install-JS7YADE.ps1 ` -PatchJar "C:\tmp\js7_yade.2.8.0-PATCH.YADE-1984.jar" ` -Patch YADE-1984 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" # downloads the patch .jar file from the SOS Web Site using Invoke-WebRequest # stores the patch .jar file to the YADE's <home>\lib\patches sub-directory
Uninstall
Uninstall YADE for Unix
Uninstall
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -HomeDir /opt/sos-berlin.com/js7/yade` -Data /var/sos-berlin.com/js7/yade` -Uninstall # removes the home directory and data directory
Uninstall and Preserve Home Directory
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -HomeDir /opt/sos-berlin.com/js7/yade ` -Data /var/sos-berlin.com/js7/yade ` -UninstallData # removes the YADE's data directory # preserves the YADE's home directory
Uninstall and Preserve Data Directory
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -HomeDir /opt/sos-berlin.com/js7/yade ` -Data /var/sos-berlin.com/js7/yade ` -UninstallHome # removes the YADE's home directory # preserves the YADE's data directory
Uninstall YADE for Windows
Uninstall
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" ` -Data "C:\ProgramData\sos-berlin.com\js7\yade" ` -Uninstall # removes the home directory and data directory
Uninstall and Preserve Home Directory
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" ` -Data "C:\ProgramData\sos-berlin.com\js7\yade" ` -UninstallData # removes the YADE's data directory # preserves the YADE's home directory
Uninstall and Preserve Data Directory
Example for use of Installation Script
./Install-JS7YADE.ps1 ` -HomeDir "C:\Program Files\sos-berlin.com\js7\yade" ` -Data "C:\ProgramData\sos-berlin.com\js7\yade" ` -UninstallHome # removes the YADE's home directory # preserves the YADE's data directory
Overview
Content Tools