Skip to content

Commit efe163d

Browse files
author
enavn
committed
Fix xfs_quota
1 parent 568430f commit efe163d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/cron_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ function update($event_name, $data) {
145145
exec('setquota -T -u '.$username.' 604800 604800 -a &> /dev/null');
146146
} elseif ($file_system == 'xfs') {
147147

148-
exec("xfs_quota -x -c 'limit -g bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " $username' $primitive_root");
148+
exec("xfs_quota -x -c 'limit -u bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " $username' $primitive_root");
149149

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

153153
unset($project_uid, $username_position, $xfs_projects);
154154
unset($primitive_root, $df_output, $mb_hard, $mb_soft);

0 commit comments

Comments
 (0)