Skip to content

Commit 18e0297

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/nginx_plugin.inc.php

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

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

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

756756
unset($project_uid, $username_position, $xfs_projects);
757757
unset($primitive_root, $df_output, $mb_hard, $mb_soft);

0 commit comments

Comments
 (0)