andre vor 7 Monaten
Ursprung
Commit
b4f68d9c10
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);