mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 17:31:02 +00:00
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 ($user eq 'root@pam') {
|
||||||
if ($param->{upgrade}) {
|
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 {
|
} else {
|
||||||
$shcmd = [ '/bin/bash', '-l' ];
|
$shcmd = [ '/bin/bash', '-l' ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user