From 3da56b2c232284cf0ba1fab112dda9205c3941c7 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider <squidly@nnx.com> Date: Mon, 4 Mar 2013 10:52:22 +0000 Subject: [PATCH] Bugfixing config script alternc_html trailing slash since with the get_first_existing_dir function we might end up with an empty variable. --- debian/alternc.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/alternc.config b/debian/alternc.config index de2d86da..1756f1a8 100644 --- a/debian/alternc.config +++ b/debian/alternc.config @@ -211,7 +211,7 @@ while [ "$QUEST_STATE" != 0 -a "$QUEST_STATE" != 13 ]; do ALTERNC_HTML="$RET" #checking acl and quota activation. basedir=`get_first_existing_dir "$ALTERNC_HTML"`; - MOUNT_POINT=$(df -P ${basedir%/*} | tail -n 1 | awk '{print $6}') + MOUNT_POINT=$(df -P ${basedir} | tail -n 1 | awk '{print $6}') #we get the first existing dir aclcheckfile="$basedir/test-acl" touch "$aclcheckfile"