mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-07 14:19:13 +00:00
pbs: rework client exe handling and error message
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
f7c0254131
commit
76ddb876d9
@ -140,12 +140,11 @@ my $USE_CRYPT_PARAMS = {
|
|||||||
my sub do_raw_client_cmd {
|
my sub do_raw_client_cmd {
|
||||||
my ($self, $client_cmd, $param, %opts) = @_;
|
my ($self, $client_cmd, $param, %opts) = @_;
|
||||||
|
|
||||||
|
my $client_bin = (delete $opts{binary}) || 'proxmox-backup-client';
|
||||||
my $use_crypto = $USE_CRYPT_PARAMS->{$client_cmd};
|
my $use_crypto = $USE_CRYPT_PARAMS->{$client_cmd};
|
||||||
|
|
||||||
my $client_exe = (delete $opts{binary}) || 'proxmox-backup-client';
|
my $client_exe = "/usr/bin/$client_bin";
|
||||||
$client_exe = "/usr/bin/$client_exe";
|
die "executable not found '$client_exe'! $client_bin not installed?\n" if ! -x $client_exe;
|
||||||
die "executable not found '$client_exe'! proxmox-backup-client or proxmox-backup-file-restore not installed?\n"
|
|
||||||
if ! -x $client_exe;
|
|
||||||
|
|
||||||
my $scfg = $self->{scfg};
|
my $scfg = $self->{scfg};
|
||||||
my $repo = get_repository($scfg);
|
my $repo = get_repository($scfg);
|
||||||
|
Loading…
Reference in New Issue
Block a user