Florian Schaal
2014-09-11 aacbd98c0af57001c094aa92ce69902e40fb7ac0
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