Bugfixing config script alternc_html trailing slash since with the get_first_existing_dir function

we might end up with an empty variable.
This commit is contained in:
Steven Mondji-Lerider 2013-03-04 10:52:22 +00:00
parent 873707806f
commit 3da56b2c23
1 changed files with 1 additions and 1 deletions

View File

@ -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"