Till Brehm
2016-07-06 e37c4206de73fea71f0d6e1fd6b47befa81f580c
server/scripts/create_jailkit_chroot.sh
@@ -21,7 +21,7 @@
chown root:root $CHROOT_HOMEDIR
## Initialize the chroot into the specified directory with the specified applications
jk_init -f -k -j $CHROOT_HOMEDIR $CHROOT_APP_SECTIONS
jk_init -f -k -c /etc/jailkit/jk_init.ini -j $CHROOT_HOMEDIR $CHROOT_APP_SECTIONS
## Create the temp directory
if [ ! -d "$CHROOT_HOMEDIR/tmp" ]
@@ -30,6 +30,9 @@
fi
chmod a+rwx $CHROOT_HOMEDIR/tmp
## Fix permissions of the root firectory
chmod g-w $CHROOT_HOMEDIR/bin
# mysql needs the socket in the chrooted environment
mkdir $CHROOT_HOMEDIR/var