Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Never try to disable quota

  • Loading branch information...
commit e833b9b4794e5daeb0d01b14f61e1be633196f9f 1 parent 6e1842c
David Sabeti and Pieter Noordhuis authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 warden/root/linux/setup.sh
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.