Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Never try to disable quota"

This reverts commit e833b9b.
  • Loading branch information...
commit 1d7587f3dd1a9864e104f0b1dc1db5f483575762 1 parent 02d6a29
Gary Liu authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 warden/root/linux/setup.sh
View
5 warden/root/linux/setup.sh
@@ -39,9 +39,12 @@ 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.