From 0a7f28e6e34ba7369f19b5e40457bf4fc099651e Mon Sep 17 00:00:00 2001 From: Live User Date: Sat, 19 Jan 2013 21:06:45 +0100 Subject: [PATCH] webbuild-function: support for autodist user special case in chroot mode --- webbuild/webbuild-functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webbuild/webbuild-functions b/webbuild/webbuild-functions index 6f5ad2d..ac8129b 100644 --- a/webbuild/webbuild-functions +++ b/webbuild/webbuild-functions @@ -264,7 +264,12 @@ function print_environment_descr() { function environment_autoport_logdir() { local env=$1 if [ "${AUTOPORT_CHROOT[$env]}" ]; then - echo "/var/autoport/${AUTOPORT_CHROOT[$env]}/home/${AUTOPORT_CHROOT_USER[$env]}/.autoport/" + # FIXME: be able to detect real home without using chroot + if [ "${AUTOPORT_CHROOT_USER[$env]}" = "autodist" ]; then + echo "/var/autoport/${AUTOPORT_CHROOT[$env]}/var/autodist/.autoport/" + else + echo "/var/autoport/${AUTOPORT_CHROOT[$env]}/home/${AUTOPORT_CHROOT_USER[$env]}/.autoport/" + fi elif [ "${AUTOPORT_NATIVE[$env]}" ]; then local envhome=`eval echo ~${AUTOPORT_CHROOT_USER[$env]}` echo "$envhome/.autoport"