From f5aaa17dcc72230d50a6274a7daf3f72bfa3cff8 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 9 Jan 2014 15:38:15 +0100 Subject: [PATCH] fix location of logfiles --- vbuild-nightly-lxc.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vbuild-nightly-lxc.sh b/vbuild-nightly-lxc.sh index 0a618ffd..5b5c2b9e 100755 --- a/vbuild-nightly-lxc.sh +++ b/vbuild-nightly-lxc.sh @@ -53,7 +53,11 @@ DATE=$(date +'%Y.%m.%d') # but the PL code still uses this name for now, so let's keep it simple function rootdir () { slice=$1; shift - echo /vservers/$1/rootfs + echo /vservers/$slice/rootfs +} +function logfile () { + slice=$1; shift + echo /vservers/$slice.log.txt } # wrap a quick summary of suspicious stuff @@ -609,7 +613,7 @@ function main () { exit 1 fi # manage LOG - beware it might be a symlink so nuke it first - LOG=$(rootdir ${BASE}).log.txt + LOG=$(logfile ${BASE}) rm -f $LOG exec > $LOG 2>&1 set -x @@ -652,7 +656,7 @@ function main () { BASE=${BASE}${i} # need update # manage LOG - beware it might be a symlink so nuke it first - LOG=$(rootdir ${BASE}).log.txt + LOG=$(logfile ${BASE}) rm -f $LOG exec > $LOG 2>&1 set -x -- 2.43.0