Skip to content
Snippets Groups Projects
Commit 14ab9316 authored by Florian Schaal's avatar Florian Schaal
Browse files

Fixed syntax error in new XFS quota code (cron)

parent d44bcf1e
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ class cron_plugin { ...@@ -140,7 +140,7 @@ class cron_plugin {
$file_system = explode(" ", $df_output)[0]; $file_system = explode(" ", $df_output)[0];
$primitive_root = explode(" ", $df_output)[1]; $primitive_root = explode(" ", $df_output)[1];
if ( $file_system , array('ext2','ext3','ext4') ) { if ( in_array($file_system , array('ext2','ext3','ext4'),true) ) {
exec('setquota -u '. $username . ' ' . $blocks_soft . ' ' . $blocks_hard . ' 0 0 -a &> /dev/null'); exec('setquota -u '. $username . ' ' . $blocks_soft . ' ' . $blocks_hard . ' 0 0 -a &> /dev/null');
exec('setquota -T -u '.$username.' 604800 604800 -a &> /dev/null'); exec('setquota -T -u '.$username.' 604800 604800 -a &> /dev/null');
} elseif ($file_system == 'xfs') { } elseif ($file_system == 'xfs') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment