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:
parent
8cad4c87f0
commit
3de91dde3a
|
@ -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" ]
|
||||
|
|
|
@ -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.
|
||||
.
|
||||
|
|
Loading…
Reference in New Issue