source: devel/dploy-common/install.sh @ 62

Revision 62, 703 bytes checked in by bruno, 4 years ago (diff)

Still working on post install scripts

  • 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=${DESTDIR}$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"
16
17# Prepare directory
18mkdir -p $conf/keys
19
20# Conf file
21install -m 0644 etc/dploy.conf $conf
22
23# Post install script
24install -m 0755 bin/dploy-common-post $local/bin
25
26# The script need to know where the CONFDIR is
27perl -pi -e "s|PBCONF|$conf|" $local/bin/dploy-common-post
28
29# Handling keys
30ssh-keygen -b 1024 -t dsa -f $conf/keys/dploy_id_dsa -q -N ""
31
Note: See TracBrowser for help on using the repository browser.