andre пре 7 месеци
родитељ
комит
b4f68d9c10
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controllers/QuotaController.php

+ 1 - 1
controllers/QuotaController.php

@@ -49,7 +49,7 @@ class QuotaController {
         }
         // set quota
         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) {
             error_log("getstats: ERROR: Set Quota of $quota for $username failed, details => " . implode("\n", $userOutput));
             http_response_code(500);