to be able to install an alternc instance on a LXC, I need to fix the quotaon call + skip the acl test...

This commit is contained in:
Benjamin Sonntag 2012-08-20 20:29:57 +00:00
parent 8cad4c87f0
commit 3de91dde3a
2 changed files with 7 additions and 6 deletions

10
debian/alternc.config vendored
View File

@ -75,19 +75,19 @@ db_set alternc/alternc_location "$ALTERNC_LOC"
fi
db_get alternc/alternc_location
#checking acl and quota activation, does't work with NFS yet.
#checking acl and quota activation, does't work with NFS yet. and with LXC too...
location=$RET
mount_point=`df -P $location | tail -1 | /usr/bin/awk '{print $NF}'`
quota_activation=`quotaon -pa |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$mount_point'$/ {print $4}'`
quota_activation=`(quotaon -pa 2>/dev/null || true) |grep '^group.*on$' | /usr/bin/awk '$4 ~ /^\'$mount_point'$/ {print $4}'`
acl_activation=`/bin/mount | awk '$NF ~ /acl/ && $NF !~ /noacl/ && $3 ~ /^\'"$mount_point"'$/ {print $3}'`
if [ "$mount_point" != "$acl_activation" ]
then
db_input critical alternc/acluninstalled || true
db_go
db_reset alternc/acluninstalled || true
db_fset alternc/acluninstalled "seen" "false" || true
exit 1
# db_reset alternc/acluninstalled || true
# db_fset alternc/acluninstalled "seen" "false" || true
# exit 1
fi
if [ "$mount_point" != "$quota_activation" ]

3
debian/templates vendored
View File

@ -15,7 +15,8 @@ Template: alternc/warningaclquota
Type: note
_Description: AlternC need ACL and QUOTA activated
AlternC can't work without ACL activated on his file.
Please check your /etc/fstab to activate ACL for AlternC.
Please check your /etc/fstab and add "acl" to the options
of the partition where you will install AlternC.
.
Run /usr/lib/alternc/fixperms.sh once it's activated.
.