source: devel/dploy-pxe/install.sh @ 63

Revision 63, 593 bytes checked in by bruno, 4 years ago (diff)

Save current state of art :-) remains to do is the conf file for Apache with dploy-dhcp. focus on post install deloyment

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1#!/bin/bash
2#
3# $Id$
4#
5
6if [ "_$PREFIX" != "_" ]; then
7        local=${DESTDIR}$PREFIX
8        conf=$CONFDIR
9else
10        local=/usr/local
11        echo $PATH | grep $local/bin > /dev/null || echo "Warning - your PATH environmental variable is BROKEN. Please add $local/bin to your PATH."
12        conf=$local/$CONFDIR
13fi
14
15echo "PBPKG PBVER-rPBREV will be installed under $local"
16mkdir -p $local/bin
17install -m 0755 bin/dploy-add2pxe $local/bin
18install -m 0755 bin/dploy-pxe-post $local/bin
19
20# The scripts need to know where the CONFDIR is
21perl -pi -e "s|PBCONF|$conf|" $local/bin/dploy-add2pxe $local/bin/dploy-pxe-post
Note: See TracBrowser for help on using the repository browser.