Versions Compared

Key

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

...

Installs, updates or patches a the JS7 JOC Cockpit on Windows and Unix platforms supporting PowerShell 5.1, 6, 7

...

-Data <String>
Specifies the directory in which JOC Cockpit data such as configuration files should be stored.
By default the <home>/jetty_base directory is used, see -HomeDir and -Data parameters.

Required?false
Position?2
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

Required?false
Position?18
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

Ini

-Ini <String[]>

...


Specifies an array of *.ini files that

Properties

-Properties <String>
Specifies the path to a configuration file for global JOC Cockpit configuration items. The file will be copied to the <data>/resources/joc/joc.properties file.
Any path to a file can be used as a value of this parameter, however, the target file name joc.properties will be used. start.d directory.
Typically the following .ini files can be provided:

* http.ini: specifies use of the HTTP module and HTTP Port
* https.ini: specifies use of the HTTPS module and HTTPS Port
* ssl.ini: specifies SSL related settings

Required?false
Position?2019
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

Properties

-Title <String>
Properties <String>
Specifies the path to a configuration file for global JOC Cockpit configuration items. The file will be copied to the <data>/resources/joc/joc.properties file.

Any path to a file can be used as a value of this parameter, however, the target file name joc.properties will be used.

RequiredRequired?false
Position?2120
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

Title

-SecurityLevel Title <String>

Required?false
Position?2221
Default valuelow
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

DBMSConfig

SecurityLevel

-SecurityLevel <String>

Required?false
Position?22
Default valuelow
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

DBMSConfig

-DBMSConfig -DBMSConfig <String[]>

Required?false
Position?23
Default value
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

-ServiceName <String>
For Unix environments specifies the name of the systemd service that will be created if the -MakeService switch is used.
Similarly for Windows a service with the given name will be created.
By default the service name js7_joc_<joc-id> will be used.

...

-AsUser <SwitchParameter>
Performs the installation for the user account specified with the -User parameter.
Without this switch the installation is performend with administrative privileges.

Required?false
Position?
Required?false
Position?named
Default valueFalse
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

-PreserveEnv <SwitchParameter>
In Unix environments if the -AsUser parameter is not used then 'sudo' will be used to switch to the root account for installation
of files in the <home> directory. The switch specifies if environment variables such as JAVA_HOME that are available with the
current user account will be preserved and forwarded to the 'sudo' session.

Required?false
Position?named
Default valueFalse
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

NoInstall

?false

NoInstall

-NoInstall <SwitchParameter>
Specifies if the Installation Script should be used to update configuration items without changes to the binary files of the installation.
In fact no installation is performed but configuration changes as for example specified with the -Keystore parameter will be applied. -NoInstall <SwitchParameter>

Required?false
Position?named
Default valueFalse
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

-NoJetty <SwitchParameter>
Specifies that JOC Cockpit will be installed without the Jetty Servlet Container.
This option is applicable if users prefer to use an alternative Servlet Container.

Required?false
Position?named
Default valueFalse
Accept pipeline input?true (ByPropertyName)
Accept wildcard characters?false

...

-------------------------- BEISPIEL EXAMPLE 1 --------------------------

PS C:\ > Install-JS7Joc.ps1 -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" -Data "C:\ProgramData\sos-berlin.com\js7\joc" -Release 2.5.1 -HttpPort 4446 -MakeDirs

...

-------------------------- BEISPIEL EXAMPLE 2 --------------------------

PS C:\ > Install-JS7Joc.ps1 -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" -Data "C:\ProgramData\sos-berlin.com\js7\joc" -Tarball /tmp/js7_joc_windows.2.5.1.zip -BackupDir /tmp/backups -LogDir /tmp/logs -HttpPort 4446 -MakeDirs

...

-------------------------- BEISPIEL EXAMPLE 3 --------------------------

PS C:\ > Install-JS7Joc.ps1 -HomeDir "C:\Program Files\sos-berlin.com\js7\joc" -Data "C:\ProgramData\sos-berlin.com\js7\joc" -Tarball /tmp/js7_joc_windows.2.5.1.zip -HttpPort localhost:4446 -HttpsPort apmacwin:4446 -JavaHome "C:\Program Files\Java\jdk-11.0.12+7-jre" -JavaOptions "-Xmx512m" -MakeDirs

...