|
@@ -23,7 +23,8 @@ class HestiaApp
|
|
|
throw new \Exception($errstr);
|
|
throw new \Exception($errstr);
|
|
|
}
|
|
}
|
|
|
$cli_script = '/usr/bin/sudo ' . escapeshellarg($cli_script);
|
|
$cli_script = '/usr/bin/sudo ' . escapeshellarg($cli_script);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $cli_arguments = '';
|
|
|
if (!empty($args) && is_array($args)) {
|
|
if (!empty($args) && is_array($args)) {
|
|
|
foreach ($args as $arg) {
|
|
foreach ($args as $arg) {
|
|
|
$cli_arguments .= escapeshellarg((string)$arg) . ' ';
|
|
$cli_arguments .= escapeshellarg((string)$arg) . ' ';
|