|
|
@@ -360,14 +360,14 @@ class V {
|
|
|
return $value;
|
|
|
}
|
|
|
|
|
|
- public function exec($cmd, &$out, &$ret) {
|
|
|
+ public static function exec($cmd, &$out, &$ret) {
|
|
|
$out = null;
|
|
|
$ret = null;
|
|
|
exec($cmd, $out, $ret);
|
|
|
return $ret;
|
|
|
}
|
|
|
|
|
|
- public function execRemote($host, $login, $password, $command, &$out, &$ret) {
|
|
|
+ public static function execRemote($host, $login, $password, $command, &$out, &$ret) {
|
|
|
$out = null;
|
|
|
$ret = null;
|
|
|
$pass = $password;
|
|
|
@@ -382,7 +382,7 @@ EOF';
|
|
|
return $ret;
|
|
|
}
|
|
|
|
|
|
- public function execRootRemote($host, $login, $password, $command, &$out, &$ret) {
|
|
|
+ public static function execRootRemote($host, $login, $password, $command, &$out, &$ret) {
|
|
|
$out = null;
|
|
|
$ret = null;
|
|
|
$cmd = '/opt/local/bin/sshpass -p '.str_replace('!','\!',$password).' ssh -o StrictHostKeyChecking=no -o ConnectTimeout=99999 '.$login.'@'.$host.' -t <<EOF
|