summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin3
1 files changed, 2 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index e004b97..1526d83 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -790,7 +790,8 @@ setup|update)
790 if [ "${ezjail_use_zfs}" = "YES" ]; then 790 if [ "${ezjail_use_zfs}" = "YES" ]; then
791 echo "ZFS: manage basejail and newjail" 791 echo "ZFS: manage basejail and newjail"
792 [ -d "${ezjail_jailfull}" ] && /sbin/zfs destroy -R "${ezjail_jailzfs}/fulljail" && rm -rf "${ezjail_jailfull}" 792 [ -d "${ezjail_jailfull}" ] && /sbin/zfs destroy -R "${ezjail_jailzfs}/fulljail" && rm -rf "${ezjail_jailfull}"
793 /sbin/zfs create -p "${ezjail_jailzfs}/fulljail" || exerr "Error: Cannot create temporary Jail directory." 793 [ ! -d " ${ezjail_jaildir}" ] && /sbin/zfs create -p -o mountpoint=${ezjail_jaildir} ${ezjail_zfs_properties} ${ezjail_jailzfs}
794 /sbin/zfs create "${ezjail_jailzfs}/fulljail" || exerr "Error: Cannot create temporary Jail directory."
794 else 795 else
795 [ -d "${ezjail_jailfull}" ] && chflags -R noschg "${ezjail_jailfull}" && rm -rf "${ezjail_jailfull}" 796 [ -d "${ezjail_jailfull}" ] && chflags -R noschg "${ezjail_jailfull}" && rm -rf "${ezjail_jailfull}"
796 mkdir -p "${ezjail_jailfull}" || exerr "Error: Cannot create temporary Jail directory." 797 mkdir -p "${ezjail_jailfull}" || exerr "Error: Cannot create temporary Jail directory."