[PC-BSD Commits] r17749 - pcbsd/current/src-sh/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Mon Jul 16 06:45:30 PDT 2012


Author: kris
Date: 2012-07-16 13:45:30 +0000 (Mon, 16 Jul 2012)
New Revision: 17749

Modified:
   pcbsd/current/src-sh/warden/scripts/backend/startjail.sh
Log:

Use right file-name for custom startup



Modified: pcbsd/current/src-sh/warden/scripts/backend/startjail.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/startjail.sh	2012-07-16 13:42:56 UTC (rev 17748)
+++ pcbsd/current/src-sh/warden/scripts/backend/startjail.sh	2012-07-16 13:45:30 UTC (rev 17749)
@@ -119,9 +119,9 @@
 JID="`jls | grep ${JDIR}/${IP} | tr -s " " | cut -d " " -f 2`"
 
 if [ "$LINUXJAIL" = "YES" ] ; then
-  # If we have a custom startup script
-  if [ -e "${JMETADIR}/jail-startup" ] ; then
-    sCmd=`cat ${JMETADIR}/jail-startup`
+  # If we have a custom start script
+  if [ -e "${JMETADIR}/jail-start" ] ; then
+    sCmd=`cat ${JMETADIR}/jail-start`
     echo "Starting jail with: ${sCmd}"
     jexec ${JID} ${sCmd} 2>&1
   else
@@ -133,9 +133,9 @@
     fi
   fi
 else
-  # If we have a custom startup script
-  if [ -e "${JMETADIR}/jail-startup" ] ; then
-    sCmd=`cat ${JMETADIR}/jail-startup`
+  # If we have a custom start script
+  if [ -e "${JMETADIR}/jail-start" ] ; then
+    sCmd=`cat ${JMETADIR}/jail-start`
     echo "Starting jail with: ${sCmd}"
     jexec ${JID} ${sCmd} 2>&1
   else



More information about the Commits mailing list