You can use the tpcinstaller.sh
script to automate overwriting various configurations that are created by the tealeaf-pca package when you initially install it.
These configuration files are normally created when they do not exist. Once they exist, the tealeaf-pca package does not modify or update them. If the tealeaf-pca package detects that you did not modify the files, it removes them during uninstall.
Use the tpcinstaller.sh
script's postinstall
command to overwrite various configuration files. The script is in the bin
subdirectory under the installation directory after installation.
The script automates installation and configuration, but this example only demonstrates its postinstall
command that overwrites configuration files and then starts up the software. Following is a brief example that demonstrates the basic flavor of this capability.
- It assumes that the tealeaf-pca package is already installed into
directory /opt/tealeaf
. - Commands to be run by root are prefixed with the pound sign (
#
).
- Initialize the
/etc/opt/tealeaf
directory:# sh /opt/tealeaf/bin/tpcinstaller.sh init
- Create and/or place the custom configuration files in the
/etc/opt/tealeaf
directory that is created by step 1.- To overwrite
ctc-conf.xml
, provide filectc-conf-custom.xml
. To have the installer script automatically convert PEM to PTL files and update thectc-conf.xml
file before you overwrite:- Place your PEM files in
/etc/opt/tealeaf/capturekeys
. - Replace the
<CaptureKeys>
section of yourctc-conf-custom.xml
with:<CaptureKeys>CAPTUREKEYSCONF</CaptureKeys>
- Place your PEM files in
- To overwrite
httpd.conf
, provide filehttpd-custom.conf
. - To overwrite
privacy.cfg
, provide fileprivacy-custom.cfg
. - To overwrite
runtime.conf
, provide fileruntime-custom.conf
.
- To overwrite
- Create a configuration file that is instructing the installer script to always overwrite configuration files instead of overwriting files only when theyare not changed from the default files. Following are the contents of such a configuration file, which must be named
/etc/opt/tealeaf/tpcinstaller.conf
:custom_capture_conf_enable="YES" custom_httpd_conf_enable="YES" custom_privacy_conf_enable="YES" custom_runtime_conf_enable="YES"
- Overwrite the configuration files and start all services:
# sh /etc/opt/tealeaf/bin/tpcinstaller.sh postinstall
If you want to instruct the installer script to also install/update the RPM, then you must save a copy of the installer script to
/etc/opt/tealeaf
and then start it with the RPM file name. Following is the example:
# env TPCINSTALLPREFIX=/opt/tealeaf sh /etc/opt/tealeaf/tpcinstaller.sh \
/root/tealeaf-pca-3204-1.RHEL4.i386.rpm
TPCINSTALLPREFIX
requires PCA minimum build version of 3204.