nonstandard expansions removed, syntax errors removed
This commit is contained in:
parent
34706172d7
commit
2e8a290b5d
@ -58,7 +58,7 @@ create)
|
||||
fi
|
||||
|
||||
# relative paths don't make sense in rc.scripts
|
||||
if [ "${ezjail_jaildir:0:1}" != "/" ]; then
|
||||
if [ "${ezjail_jaildir#/}" == "${ezjail_jaildir}" ]; then
|
||||
echo Error: Need an absolute path in ezjail_jaildir, it is currently set to: $ezjail_jaildir
|
||||
exit 1;
|
||||
fi
|
||||
@ -73,7 +73,7 @@ create)
|
||||
|
||||
# if jail root specified on command line is not absolute,
|
||||
# make it absolute inside our jail directory
|
||||
if [ ${newjail_root:1:1} != / ]; then
|
||||
if [ "${newjail_root#/}" = "${newjail_root}" ]; then
|
||||
newjail_root=$ezjail_jaildir/$newjail_root
|
||||
fi
|
||||
|
||||
@ -86,7 +86,6 @@ create)
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# now take a copy of our template jail
|
||||
if [ $newjail_fill = "YES" ]; then
|
||||
@ -148,7 +147,7 @@ update)
|
||||
fi
|
||||
|
||||
cd ${ezjail_sourcetree}
|
||||
rm -r ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull}
|
||||
rm -rf ${ezjail_jailfull}; mkdir -p ${ezjail_jailfull}
|
||||
make ${updatejail_installaction} DESTDIR=${ezjail_jailfull}
|
||||
make distribution DESTDIR=${ezjail_jailfull}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user