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

svn at pcbsd.org svn at pcbsd.org
Thu Dec 6 11:32:06 PST 2012


Author: kris
Date: 2012-12-06 19:32:05 +0000 (Thu, 06 Dec 2012)
New Revision: 20425

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

Make sure new jails use same time zone



Modified: pcbsd/current/src-sh/warden/scripts/backend/createjail.sh
===================================================================
--- pcbsd/current/src-sh/warden/scripts/backend/createjail.sh	2012-12-06 00:13:22 UTC (rev 20424)
+++ pcbsd/current/src-sh/warden/scripts/backend/createjail.sh	2012-12-06 19:32:05 UTC (rev 20425)
@@ -225,6 +225,11 @@
   touch "${JMETADIR}/autostart"
 fi
 
+# Check if we need to copy the timezone file
+if [ -e "/etc/localtime" ] ; then
+   cp /etc/localtime ${JDIR}/${IP}/etc/localtime
+fi
+
 # Set the default meta-pkg set
 mkdir -p ${JDIR}/${IP}/usr/local/etc >/dev/null 2>/dev/null
 echo "PCBSD_METAPKGSET: warden" > ${JDIR}/${IP}/usr/local/etc/pcbsd.conf



More information about the Commits mailing list