[Debian-live-changes] r1753 - in dists/trunk/live-helper: examples/cron functions

daniel at alioth.debian.org daniel at alioth.debian.org
Fri May 25 21:05:15 UTC 2007


Author: daniel
Date: 2007-05-25 21:05:15 +0000 (Fri, 25 May 2007)
New Revision: 1753

Added:
   dists/trunk/live-helper/examples/cron/crontab
Modified:
   dists/trunk/live-helper/functions/chroot.sh
Log:


Added: dists/trunk/live-helper/examples/cron/crontab
===================================================================
--- dists/trunk/live-helper/examples/cron/crontab	                        (rev 0)
+++ dists/trunk/live-helper/examples/cron/crontab	2007-05-25 21:05:15 UTC (rev 1753)
@@ -0,0 +1,8 @@
+# /etc/crontab - system-wide crontab
+
+SHELL=/bin/sh
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+# m  h dom mon dow user command
+*/1  * *   *   *   root /etc/cron.d/live-webhelper > /dev/null 2>&1
+*/10 * *   *   *   user /usr/share/doc/live-helper/examples/cron/snapshots.sh > /dev/null 2>&1

Modified: dists/trunk/live-helper/functions/chroot.sh
===================================================================
--- dists/trunk/live-helper/functions/chroot.sh	2007-05-25 20:49:14 UTC (rev 1752)
+++ dists/trunk/live-helper/functions/chroot.sh	2007-05-25 21:05:15 UTC (rev 1753)
@@ -15,7 +15,7 @@
 
 	# Executing commands in chroot
 	Echo_debug "Executing: ${COMMANDS}"
-	${LH_ROOT_COMMAND} chroot chroot /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" TERM="${TERM}" ftp_proxy="${LH_APT_FTPPROXY}" http_proxy="${LH_APT_HTTPPROXY}" DEBIAN_FRONTEND="${LH_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LH_DEBCONF_PRIORITY}" DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS}" ${COMMANDS}
+	${LH_ROOT_COMMAND} chroot chroot /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" TERM="${TERM}" ftp_proxy="${LH_APT_FTPPROXY}" http_proxy="${LH_APT_HTTPPROXY}" DEBIAN_FRONTEND="${LH_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LH_DEBCONF_PRIORITY}" DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS}" ${COMMANDS}
 
 	return "${?}"
 }




More information about the Debian-live-changes mailing list