File: preinstall.head.in

package info (click to toggle)
pcp 4.3.2%2Breally4.3.1-0.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 175,188 kB
  • sloc: ansic: 261,305; sh: 123,606; xml: 107,279; cpp: 72,127; perl: 18,283; python: 15,453; yacc: 8,249; lex: 2,585; makefile: 1,957; fortran: 60; java: 52
file content (30 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (2)
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@