[PC-BSD Commits] r19773 - pcbsd/branches/9.1/src-sh/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Fri Oct 19 00:54:50 PDT 2012


Author: kris
Date: 2012-10-19 07:54:50 +0000 (Fri, 19 Oct 2012)
New Revision: 19773

Modified:
   pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh
Log:

MFC fit to warden chroot dir



Modified: pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh
===================================================================
--- pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh	2012-10-19 07:54:13 UTC (rev 19772)
+++ pcbsd/branches/9.1/src-sh/warden/scripts/backend/functions.sh	2012-10-19 07:54:50 UTC (rev 19773)
@@ -9,8 +9,12 @@
 # Installation directory
 PROGDIR="/usr/local/share/warden"
 
+# Jail location
+JDIR="$(grep ^JDIR: /usr/local/etc/warden.conf | cut -d' ' -f2)"
+export JDIR
+
 # Location of the chroot environment
-WORLDCHROOT="/usr/jails/.warden-chroot.txz"
+WORLDCHROOT="${JDIR}/.warden-chroot.txz"
 export WORLDCHROOT
 
 # Location of pcbsd.conf file
@@ -24,10 +28,6 @@
 WTMP="$(grep ^WTMP: /usr/local/etc/warden.conf | cut -d' ' -f2)"
 export WTMP
 
-# Jail location
-JDIR="$(grep ^JDIR: /usr/local/etc/warden.conf | cut -d' ' -f2)"
-export JDIR
-
 # Temp file for dialog responses
 ATMP="/tmp/.wans"
 export ATMP



More information about the Commits mailing list