Commit 1cccf017 authored by enavn's avatar enavn
Browse files

Fix xfs_quota

parent 18e02970
...@@ -890,10 +890,10 @@ class apache2_plugin { ...@@ -890,10 +890,10 @@ class apache2_plugin {
$primitive_root = $df_output[1]; $primitive_root = $df_output[1];
if($file_system == 'xfs') { if($file_system == 'xfs') {
exec("xfs_quota -x -c 'limit -g bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " $username' $primitive_root"); exec("xfs_quota -x -c 'limit -u bsoft=$mb_soft" . 'm'. " bhard=$mb_hard" . 'm'. " $username' $primitive_root");
// xfs only supports timers globally, not per user. // xfs only supports timers globally, not per user.
exec("xfs_quota -x -c 'timer -bir -i 604800'"); exec("xfs_quota -x -c 'timer -bir -i 604800' $primitive_root");
unset($project_uid, $username_position, $xfs_projects); unset($project_uid, $username_position, $xfs_projects);
unset($primitive_root, $df_output, $mb_hard, $mb_soft); unset($primitive_root, $df_output, $mb_hard, $mb_soft);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment