Skip to content

Commit c8ccf55

Browse files
author
Marius Burkard
committed
- reverted last commit partly
1 parent 96541d1 commit c8ccf55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ function update($event_name, $data) {
890890
$primitive_root = $df_output[1];
891891

892892
if($file_system == 'xfs') {
893-
exec("xfs_quota -x -c " . escapeshellarg("limit -u bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " " . $data['new']['system_group']) . " " . escapeshellarg($primitive_root));
893+
exec("xfs_quota -x -c " . escapeshellarg("limit -u bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " " . $username) . " " . escapeshellarg($primitive_root));
894894

895895
// xfs only supports timers globally, not per user.
896896
exec("xfs_quota -x -c 'timer -bir -i 604800' " . escapeshellarg($primitive_root));

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ function update($event_name, $data) {
748748
$primitive_root = $df_output[1];
749749

750750
if($file_system == 'xfs') {
751-
exec("xfs_quota -x -c " . escapeshellarg("limit -u bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " " . $data['new']['system_group']) . " " . escapeshellarg($primitive_root));
751+
exec("xfs_quota -x -c " . escapeshellarg("limit -u bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " " . $username) . " " . escapeshellarg($primitive_root));
752752

753753
// xfs only supports timers globally, not per user.
754754
exec("xfs_quota -x -c 'timer -bir -i 604800' " . escapeshellarg($primitive_root));

0 commit comments

Comments
 (0)