summaryrefslogtreecommitdiff
path: root/build/tar/preinstall.head.in
blob: 362730f6dbdee33fedfea6569adc2480cf14fbdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# Generic script to be run before installing PCP from a tarball
#

if [ ! -f /etc/pcp.conf ]
then
    echo "No /etc/pcp.conf ... assume PCP not installed or disabled"
    exit 0
fi

# The new place ... this should match the setting in /etc/pcp.conf
# _after_ the installation
#
PCP_SYSCONF_DIR=@pcp_sysconf_dir@
# and same here ...
#
PCP_LOG_DIR=@pcp_log_dir@
[ -d "$PCP_LOG_DIR" ] || mkdir "$PCP_LOG_DIR"

# and some other things we need ...
#
PCP_RC_DIR=@pcp_rc_dir@
PCP_PMCDCONF_PATH=@pcp_pmcdconf_path@
PCP_PMCDOPTIONS_PATH=@pcp_pmcdoptions_path@
PCP_PMCDRCLOCAL_PATH=@pcp_pmcdrclocal_path@
PCP_PMIECONTROL_PATH=@pcp_pmiecontrol_path@
PCP_PMLOGGERCONTROL_PATH=@pcp_pmloggercontrol_path@
PCP_PMPROXYOPTIONS_PATH=@pcp_pmproxyoptions_path@
PCP_PMWEBDOPTIONS_PATH=@pcp_pmwebdoptions_path@