use the pveupgrade command directly without bash inbetween,
the incorrect quoting led to '--shell' not being passed to
pveupgrade and closing the connection
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
if ($user eq 'root@pam') {
if ($param->{upgrade}) {
- my $upgradecmd = "pveupgrade --shell";
- $concmd = [ '/bin/bash', '-c', $upgradecmd ];
+ $concmd = [ '/usr/bin/pveupgrade', '--shell' ];
} else {
$concmd = [ '/bin/login', '-f', 'root' ];
}