webbuild-functions: fixes to previous change

This commit is contained in:
Silvan Calarco 2013-05-22 00:31:57 +02:00
parent d7fa8c819b
commit 8751a555bc

View File

@ -284,9 +284,9 @@ function environment_logdir() {
if [ "${AUTOPORT_CHROOT_USER[$env]}" != "autodist" ]; then
echo "/var/autoport/${AUTOPORT_CHROOT[$env]}/home/${AUTOPORT_CHROOT_USER[$env]}/.autodist/log/"
else
echo "/var/autoport/${AUTOPORT_CHROOT[$env]}/var/autodist/.autoport/"
echo "/var/autoport/${AUTOPORT_CHROOT[$env]}/var/autodist/log/"
fi
elif [ "${AUTOPORT_NATIVE[$env]}" -o "${AUTOPORT_CHROOT[$env]}" ]; then
elif [ "${AUTOPORT_NATIVE[$env]}" ]; then
local envhome=`eval echo ~${AUTOPORT_CHROOT_USER[$env]}`
if [ "${AUTOPORT_CHROOT_USER[$env]}" = "autodist" ]; then
echo "$envhome/log"