source: dasscm/trunk/dasscm.install.sh@ 1220

Last change on this file since 1220 was 1168, checked in by joergs, on Feb 4, 2014 at 4:46:31 PM

added dasscm_remote_check.sh

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2
3set -x
4
5eval "$@"
6
7if [ -z "${DESTDIR}" ]; then
8 echo "failed: DESTDIR is not defined. Giving up"
9 exit 1
10fi
11
12# if ! [ -d "${DESTDIR}" ]; then
13# echo "failed: DESTDIR ${DESTDIR} is not accessable. Giving up"
14# exit 1
15# fi
16mkdir -p ${DESTDIR}
17
18install -d ${DESTDIR}/var/lib/dasscm/
19install -d ${DESTDIR}/var/lib/dasscm/plugin-results/
20
21install -d ${DESTDIR}/usr/bin
22install -m 0755 usr/bin/dasscm ${DESTDIR}/usr/bin
23install -m 0755 usr/bin/dasscm_remote_check.sh ${DESTDIR}/usr/bin
24install -m 0755 usr/bin/dasscm_remote_update.sh ${DESTDIR}/usr/bin
25
26install -d ${DESTDIR}/etc
27install -m 0644 etc/dasscm.conf ${DESTDIR}/etc
28
29if test -d /etc/bash_completion.d/; then
30 install -d ${DESTDIR}/etc/bash_completion.d/
31 install -m 644 etc/bash_completion.d/bash_completion_dasscm.sh ${DESTDIR}/etc/bash_completion.d/dasscm.sh
32fi
33
34#if test -d /etc/nagios/nrpe.d/; then
35 mkdir -p ${DESTDIR}/etc/nagios/nrpe.d/
36 install -m 644 etc/nagios/nrpe.d/nrpe-dasscm.cfg ${DESTDIR}/etc/nagios/nrpe.d/dasscm.cfg
37#fi
38
39install -d ${DESTDIR}/etc/profile.d/
40install -m 644 etc/profile.d/dasscm.sh ${DESTDIR}/etc/profile.d/
41
42install -d ${DESTDIR}/etc/sudoers.d/
43install -m 440 etc/sudoers.d/nagios_dasscm_check ${DESTDIR}/etc/sudoers.d/
44
45#install -d ${DESTDIR}/etc/subversion
46#install -m 0644 subversion-servers.dass-it ${DESTDIR}/etc/subversion/servers.dass-it
Note: See TracBrowser for help on using the repository browser.