From dbd028adc86074fb26355fcf787d2cdae1e2df2a Mon Sep 17 00:00:00 2001 From: dpeca Date: Sat, 2 Mar 2019 23:16:46 +0100 Subject: [PATCH] Fix for nice and ionice in FileManager --- web/file_manager/fm_core.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/file_manager/fm_core.php b/web/file_manager/fm_core.php index 6adb0f75..b176f01d 100644 --- a/web/file_manager/fm_core.php +++ b/web/file_manager/fm_core.php @@ -83,7 +83,7 @@ class FileManager { $src = $this->formatFullPath($item); $dst = $this->formatFullPath($target_dir); - exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-file {$this->user} {$src} {$dst}", $output, $return_var); + exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-copy-fs-file {$this->user} {$src} {$dst}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -104,7 +104,7 @@ class FileManager { $src = $this->formatFullPath($item); $dst = $this->formatFullPath($target_dir); - exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-directory {$this->user} {$src} {$dst}", $output, $return_var); + exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-copy-fs-directory {$this->user} {$src} {$dst}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -159,7 +159,7 @@ class FileManager { $dst_item = $this->formatFullPath($dst_item); - exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-add-fs-archive {$this->user} {$dst_item} {$items}", $output, $return_var); + exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-add-fs-archive {$this->user} {$dst_item} {$items}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -183,7 +183,7 @@ class FileManager { $dst_item = $this->formatFullPath($dst_item_name); - exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-copy-fs-file {$this->user} {$src_item} {$dst_item}", $output, $return_var); + exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-copy-fs-file {$this->user} {$src_item} {$dst_item}", $output, $return_var); $error = self::check_return_code($return_var, $output); @@ -219,7 +219,7 @@ class FileManager { $item = $this->formatFullPath($item); $dst_item = $this->formatFullPath($target_dir); - exec (VESTA_CMD . "nice -n 19 ionice -c 3 v-extract-fs-archive {$this->user} {$item} {$dst_item}", $output, $return_var); + exec ("nice -n 19 ionice -c 3 ".VESTA_CMD . "v-extract-fs-archive {$this->user} {$item} {$dst_item}", $output, $return_var); $error = self::check_return_code($return_var, $output);