fix shell quoting for upgrade command
This commit is contained in:
parent
8cfd96ad45
commit
ea5eb43003
@ -631,7 +631,9 @@ __PACKAGE__->register_method ({
|
||||
|
||||
if ($user eq 'root@pam') {
|
||||
if ($param->{upgrade}) {
|
||||
$shcmd = [ '/bin/bash', '-c', '"pveupgrade --shell"' ];
|
||||
my $upgradecmd = "pveupgrade --shell";
|
||||
$upgradecmd = PVE::Tools::shellquote($upgradecmd) if $remip;
|
||||
$shcmd = [ '/bin/bash', '-c', $upgradecmd ];
|
||||
} else {
|
||||
$shcmd = [ '/bin/bash', '-l' ];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user