Install should not crash without warning because of acls anymore. closed #1325

This commit is contained in:
Steven Mondji-Lerider 2012-10-17 10:00:55 +00:00
parent 24fd334635
commit 85fdf788ae
1 changed files with 9 additions and 6 deletions

15
debian/alternc.config vendored
View File

@ -180,17 +180,20 @@ db_get alternc/alternc_location
LOCATION="$RET"
#checking acl and quota activation, does't work with NFS yet. should now work with lxc
MOUNT_POINT=$(df -P ${LOCATION%/*} | tail -n 1 | awk '{print $6}')
# Get the mount options for the path:$
MOUNT_OPTS=$(awk '$2=="'$MOUNT_POINT'" { print $4 }' /proc/mounts)
# Check to see if acl is one of the mount points:$
echo $MOUNT_OPTS | tr , \\\n | grep -q '^acl$'
if [ $(echo $MOUNT_OPTS | tr , \\\n | grep '^acl$' 2>/dev/null) != 'acl' ]; then
# Check to see if acl is one of the mount points:$
ACL="$(echo "$MOUNT_OPTS" | tr "," "\\n" | grep '^acl$')" || true
if [ -z "$ACL" ]; then
db_input critical alternc/acluninstalled || true
db_go
# db_reset alternc/acluninstalled || true
# db_fset alternc/acluninstalled "seen" "false" || true
# exit 1
db_title AlternC
db_reset alternc/acluninstalled || true
db_fset alternc/acluninstalled "seen" "false" || true
exit 1
fi
quota_activation=$(quotaon -pa 2>/dev/null |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$MOUNT_POINT'$/ {print $4}')