moglia
2010-05-16 bef47735b2cc8d484a9533a726f1c7a6c42b3f6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
 
# Add specified programs and their libraries to the jailkit chroot
 
#
# Usage: ./create_jailkit_programs /path/to/chroot '/usr/bin/program'
#
 
# Sanity check
 
if [ "$1" = "" ]; then
        echo "    Usage: ./create_jailkit_programs /path/to/chroot '/usr/bin/program'"
        exit
fi
 
 
CHROOT_HOMEDIR=$1
CHROOT_APP_PROGRAMS=$2
 
jk_cp -k $CHROOT_HOMEDIR $CHROOT_APP_PROGRAMS