#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/pedquota Copyright 2022 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
use Cpanel::Binaries ();
my $quotacheck_cmd = Cpanel::Binaries::path('quotacheck');
if ( !-x $quotacheck_cmd ) {
print "Unable to find quotacheck tool.\n";
exit 1;
}
if ( $ENV{'NQUOTA'} eq "" ) {
if ( $ENV{'WHM50'} ) { print "
"; }
print "$0: Can't find new quota value\n";
if ( $ENV{'WHM50'} ) { print "
"; }
print "Failed to change quota.\nQuotas may not be not enabled or this version of edquota is not supported by $0\n";
if ( $ENV{'WHM50'} ) { print "