Commit 3ac5743f authored by Dom Sekotill's avatar Dom Sekotill
Browse files

auto-build: logging location has it's own config

[auto-build] log-location is now the config value for the base of the
logging tree, and the default is now /var/log/auto-build
parent f17e9e28
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -272,14 +272,14 @@ main ()
{
	local old new ref
	local log log_dir log_current
	local dbuild=`config location || echo /tmp/build/`
	dbuild=`dirname "$dbuild".`
	local dlog=`config log-location || echo /var/log/auto-build`
	local repo=`basename "$PWD"`
	while read old new ref; do
		if [ $((0x$new)) -eq 0 ]; then
			continue
		fi
		if [ "$ref" ]; then
			log="$dbuild/logs/$ref/`date +%s`.log"
			log="$dlog/$repo/$ref/`date +%s`.log"
			log_dir=`dirname "$log"`
			log_current="$log_dir/current.log"
			mkdir -p "$log_dir"