Commit 1617f021 authored by Dietmar Maurer's avatar Dietmar Maurer

fix shell quoting for upgrade command

parent 04d7826d
...@@ -631,7 +631,9 @@ __PACKAGE__->register_method ({ ...@@ -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' ];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment