Permalink
Browse files

Never try to disable quota

  • Loading branch information...
David Sabeti and Pieter Noordhuis
David Sabeti and Pieter Noordhuis committed Apr 5, 2013
1 parent 6e1842c commit e833b9b4794e5daeb0d01b14f61e1be633196f9f
Showing with 1 addition and 4 deletions.
  1. +1 −4 warden/root/linux/setup.sh
@@ -39,12 +39,9 @@ if [ -x /etc/init.d/apparmor ]; then
fi
# quotaon(8) exits with non-zero status when quotas are ENABLED
-if [ "$DISK_QUOTA_ENABLED" = "true" ] && quotaon -p $CONTAINER_DEPOT_MOUNT_POINT_PATH > /dev/null
+if [ "$DISK_QUOTA_ENABLED" == "true" ] && quotaon -p $CONTAINER_DEPOT_MOUNT_POINT_PATH > /dev/null
then
mount -o remount,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 $CONTAINER_DEPOT_MOUNT_POINT_PATH
quotacheck -ugmb -F vfsv0 $CONTAINER_DEPOT_MOUNT_POINT_PATH
quotaon $CONTAINER_DEPOT_MOUNT_POINT_PATH
-elif [ "$DISK_QUOTA_ENABLED" = "false" ] && ! quotaon -p $CONTAINER_DEPOT_MOUNT_POINT_PATH > /dev/null
-then
- quotaoff $CONTAINER_DEPOT_MOUNT_POINT_PATH
fi

0 comments on commit e833b9b

Please sign in to comment.