Add umask
Some directories were being created 700 and causing problems, added umask 022 to fix this
This commit is contained in:
parent
cb829ec8d0
commit
52fdf15a4b
1 changed files with 1 additions and 1 deletions
|
@ -160,10 +160,10 @@ EOF
|
||||||
createJail() {
|
createJail() {
|
||||||
# Create the jail directory
|
# Create the jail directory
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
|
umask 022
|
||||||
mkdir -p ${jaildir}/${name}
|
mkdir -p ${jaildir}/${name}
|
||||||
if [ ! -d "${jaildir}/base" ]; then
|
if [ ! -d "${jaildir}/base" ]; then
|
||||||
mkdir "${jaildir}/base"
|
mkdir "${jaildir}/base"
|
||||||
chmod 755 "${jaildir}/base"
|
|
||||||
tar -xzf "${jaildir}/jailbase.tgz" -C "${jaildir}/base"
|
tar -xzf "${jaildir}/jailbase.tgz" -C "${jaildir}/base"
|
||||||
if [ ! -d "${jaildir}/base/usr/local" ]; then
|
if [ ! -d "${jaildir}/base/usr/local" ]; then
|
||||||
mkdir -p "${jaildir}/base/usr/local"
|
mkdir -p "${jaildir}/base/usr/local"
|
||||||
|
|
Loading…
Reference in a new issue