Changeset 62 for devel/dploy-common


Ignore:
Timestamp:
06/04/08 16:41:16 (4 years ago)
Author:
bruno
Message:

Still working on post install scripts

Location:
devel/dploy-common
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • devel/dploy-common/Makefile.PL

    r44 r62  
    55# the contents of the Makefile that is written. 
    66WriteMakefile( 
    7     NAME         => 'dploy', 
    8     DISTNAME     => 'dploy', 
     7    NAME         => 'PBPKG', 
     8    DISTNAME     => 'PBPKG', 
    99    VERSION      => 'PBVER', 
    1010    INST_SCRIPT  => 'blib/bin', 
     
    1515    },    # e.g., Module::Name => 1.1 
    1616    AUTHOR        => 'Bruno Cornec <bruno#dploy.org>', 
    17     #EXE_FILES     => [ qw( bin/dploy-check ) ], 
    18     #MAN1PODS      => { 'bin/pb' => '$(INST_MAN1DIR)/pb.$(MAN1EXT)', }, 
     17    EXE_FILES     => [ qw( bin/PBPKG-post ) ], 
     18    MAN1PODS      => { 'bin/PBPKG-post' => '$(INST_MAN1DIR)/PBPKG-post.$(MAN1EXT)', }, 
    1919    MAN3PODS      => { 'lib/Dploy/Base.pm' => '$(INST_MAN3DIR)/Dploy::Base.$(MAN3EXT)', }, 
    2020); 
  • devel/dploy-common/bin/dploy-common-post

    r61 r62  
    5959chmod 0700,"$dir/.ssh"; 
    6060my $keyf = "$dir/.ssh/authorized_keys"; 
    61 my $pubf = "$ENV{'CONFDIR'}/keys/dploy_id_dsa.pub"; 
     61my $pubf = "PBCONF/keys/dploy_id_dsa.pub"; 
    6262 
    6363# Adds our key to that account authorized_keys 
     
    7676    close(KEYF); 
    7777 
    78     if ($found == 1) { 
     78    if ($found == 0) { 
    7979        open(KEYF,">> $keyf") || die "Unable to append to $keyf: $!"; 
    8080        print KEYF "$prot $key $mail"; 
  • devel/dploy-common/etc/dploy.conf

    r57 r62  
    33 
    44# Folder path for PXE configuration files 
    5 pathpxe default = /tftpboot/pxelinux.cfg 
     5pathpxe default = /var/cache/dploy/pxelinux.cfg 
    66 
    77# DHCP server IP address 
  • devel/dploy-common/install.sh

    r56 r62  
    99else 
    1010    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." 
     11    echo $PATH | grep $local/bin > /dev/null || echo "Warning - your PATH environmental variable is BROKEN. Please add $local/bin to your PATH." 
    1212    conf=$local/$CONFDIR 
    1313fi 
     
    2121install -m 0644 etc/dploy.conf $conf 
    2222 
     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 
    2329# Handling keys 
    2430ssh-keygen -b 1024 -t dsa -f $conf/keys/dploy_id_dsa -q -N "" 
Note: See TracChangeset for help on using the changeset viewer.