Add umask

Some directories were being created 700 and causing problems, added umask 022 to fix this
This commit is contained in:
Jake Guffey 2013-02-19 15:28:03 -05:00
parent cb829ec8d0
commit 52fdf15a4b
1 changed files with 1 additions and 1 deletions

View File

@ -160,10 +160,10 @@ EOF
createJail() {
# Create the jail directory
cat <<EOF
umask 022
mkdir -p ${jaildir}/${name}
if [ ! -d "${jaildir}/base" ]; then
mkdir "${jaildir}/base"
chmod 755 "${jaildir}/base"
tar -xzf "${jaildir}/jailbase.tgz" -C "${jaildir}/base"
if [ ! -d "${jaildir}/base/usr/local" ]; then
mkdir -p "${jaildir}/base/usr/local"