andre 7 сар өмнө
parent
commit
f1a74b8efa

+ 1 - 2
controllers/QuotaController.php

@@ -14,14 +14,13 @@ class QuotaController {
 
         // get quota
         if ($GLOBALS['debug'] == true) {error_log("Get Quota for User: " . $username); }
-        exec("sudo quota -p --hide-device -w $username | tail -n +3 | column -t -n quota -N blocks,soft,hard,grace,inodes,isoft,ihard,igrace -H 5 -J 2>&1", $userOutput, $userReturnCode);
+        exec("sudo quota -p --hide-device -w $username | tail -n +3 | column -t -n quota -N blocks,soft,hard,grace,inodes,isoft,ihard,igrace -H 5  2>&1", $userOutput, $userReturnCode);
         if ($userReturnCode !== 0) {
             error_log("getquota: ERROR: Getting Quota for $username failed, details => " . implode("\n", $userOutput));
             http_response_code(500);
             echo json_encode(['error' => 'Failed to get user quota', 'details' => implode("\n", $userOutput)]);
             return;
         }
-        error_log(print_r($userOutput));
         echo json_encode($userOutput);
     }
     public static function getStats(): void {