3 # DO NOT EDIT - This file is being maintained by Chef
11 exec >"${LOGDIR}/$(date +%Y%m%d-%H%M).log" 2>&1
13 echo "Updating planet file..."
14 sudo -u "$USER" "$DIR/bin/update-planet"
16 echo "Running jobs..."
17 if [ -d "$DIR/jobs" ]; then
18 for job in `find "$DIR/jobs" -type f -executable | sort`; do
19 user=`stat '--format=%U' $job`
20 echo "Running '$job' as user '$user'..."
26 echo "Expire old logs..."
27 find "${LOGDIR}" -mtime +28 -delete