From e743900632fd6614b67870990434b19d475663cf Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Fri, 22 Jul 2016 07:57:11 -0400
Subject: [PATCH] Implemented #4045 Add support for OpenVZ simfs in website quota code

---
 server/scripts/create_jailkit_chroot.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/server/scripts/create_jailkit_chroot.sh b/server/scripts/create_jailkit_chroot.sh
index 312148d..cc39b6e 100755
--- a/server/scripts/create_jailkit_chroot.sh
+++ b/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

--
Gitblit v1.9.1