PVE/Storage/PBSPlugin.pm: start new proxmox backup server plugin

This commit is contained in:
Dietmar Maurer
2020-02-19 13:55:27 +01:00
committed by Thomas Lamprecht
parent 75815bf556
commit 271fe39460
4 changed files with 362 additions and 1 deletions

View File

@ -136,7 +136,7 @@ __PACKAGE__->register_method ({
my $password;
# always extract pw, else it gets written to the www-data readable scfg
if (my $tmp_pw = extract_param($param, 'password')) {
if ($type eq 'cifs' && $param->{username}) {
if (($type eq 'pbs') || ($type eq 'cifs' && $param->{username})) {
$password = $tmp_pw;
} else {
warn "ignore password parameter\n";