29.3 Running the JBossPostgreSQL Utility in Silent or Command Mode

This section describes how to run the JBossPostgreSQL utility in console or silent mode. A silent installation requires no interaction during the installation and can save you time, especially when you install on more than one system. This process includes the following activities:

29.3.1 Setting Passwords in the Environment for a Silent Installation

If you do not want to specify the passwords in the silent.properties file for the JBossPostgreSQL installation, you can set the passwords in the environment instead. In this case, the silent installer will read the passwords from the environment, rather than from the silent.properties file. This can provide some additional security.

You must specify the following passwords for the User Application installation:

  • NOVL_DB_PASSWORD

  • NOVL_DB_USER_PASSWORD

Linux

Use the export command. For example:

export NOVL_DB_USER_PASSWORD=myPassWord
Windows

Use the set command. For example:

set NOVL_DB_USER_PASSWORD=myPassWord

29.3.2 Editing the silent.properties File

You can run the JBossPostgreSQL utility in console or silent mode. Before running the utility in silent mode, you need to edit the properties file for the JBossPostgreSQL utility.

NOTE:PostgreSQL requires several Microsoft VC++ libraries when running on Windows. If these libraries are not installed on the Windows server, the PostgreSQL installer automatically installs them. When you run the JBossPostgreSQL installer in silent mode on Windows, a pop-up window appears for about three seconds while these libraries are being installed if those libraries are not already installed on the machine.

  1. Log on as a root user to the computer where you want to run the JBossPostgreSQL silent installation.

  2. Open the silent.properties file on the local computer.

  3. Modify the following parameters in the silent.properties file:

Property

Description

USER_INSTALL_DIR

Path to where you want JBoss and the JRE installed.

Required if installing JBoss; otherwise, leave blank.

NOVL_DB_NAME

Name of the database to use. The default database name is idmuserappdb.

Required if installing PostgreSQL. If you are not installing PostgreSQL, this value will be ignored.

NOVL_DB_PASSWORD

Database root password.

Required if installing PostgreSQL. If you are not installing PostgreSQL, this value will be ignored.

NOVL_DB_PASSWORD_CONFIRM

Confirms the database root password.

Required if installing PostgreSQL. If you are not installing PostgreSQL, this value will be ignored.

CHOSEN_INSTALL_FEATURE_LIST

Install sets to install.

Required. You can choose both JBoss and PostgreSQL, or install just one of these products.

Examples:

CHOSEN_INSTALL_FEATURE_LIST=JBoss, PostgreSQL
CHOSEN_INSTALL_FEATURE_LIST=JBoss,""

USER_MAGIC_FOLDER_1

Name of the installation directory for PostgreSQL.

Required if installing PostgreSQL. This property will be ignored if CHOSEN_INSTALL_FEATURE_LIST does not include PostgreSQL.

START_DB

Indicates whether the installer will start the database at installation time. Assign the value Start if you want the installer to start the database; otherwise, leave this property blank.

Optional.

29.3.3 Performing a Silent or Command Installation for the JBossPostgreSQL Utility

  1. Log on as a root user to the computer where you want to install the User Application.

  2. Open a terminal session.

  3. Specify the values for the installation. For more information, see Section 29.3.1, Setting Passwords in the Environment for a Silent Installation and Section 29.3.2, Editing the silent.properties File.

  4. Launch the installation with the following command:

    JBossPostgreSQL -i silent -f path_to_properties_file
    

    For example:

    JBossPostgreSQL -i silent -f /home/jdoe/idm-install-files/silent.properties