diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /build/tar/preinstall.head.in | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'build/tar/preinstall.head.in')
-rw-r--r-- | build/tar/preinstall.head.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/build/tar/preinstall.head.in b/build/tar/preinstall.head.in new file mode 100644 index 0000000..362730f --- /dev/null +++ b/build/tar/preinstall.head.in @@ -0,0 +1,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@ |