Skip to content

Commit 1cccf01

Browse files
author
enavn
committed
Fix xfs_quota
1 parent 18e0297 commit 1cccf01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/apache2_plugin.inc.php

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

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

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

898898
unset($project_uid, $username_position, $xfs_projects);
899899
unset($primitive_root, $df_output, $mb_hard, $mb_soft);

0 commit comments

Comments
 (0)