|
@@ -49,7 +49,7 @@ class QuotaController {
|
|
|
}
|
|
}
|
|
|
// set quota
|
|
// set quota
|
|
|
if ($GLOBALS['debug'] == true) {error_log("Set Limit of $quota for $username"); }
|
|
if ($GLOBALS['debug'] == true) {error_log("Set Limit of $quota for $username"); }
|
|
|
- exec("sudo xfs_quota -x -c 'limit -u bsoft=$quota bhard=$quota $username' /home 2>&1", $userOutput, $userReturnCode);
|
|
|
|
|
|
|
+ exec("sudo xfs_quota -x -c 'limit -u bsoft=".$quota."M bhard=".$quota."M $username' /home 2>&1", $userOutput, $userReturnCode);
|
|
|
if ($userReturnCode !== 0) {
|
|
if ($userReturnCode !== 0) {
|
|
|
error_log("getstats: ERROR: Set Quota of $quota for $username failed, details => " . implode("\n", $userOutput));
|
|
error_log("getstats: ERROR: Set Quota of $quota for $username failed, details => " . implode("\n", $userOutput));
|
|
|
http_response_code(500);
|
|
http_response_code(500);
|