As /etc/pve/priv is already pretty polluted, having a
"<storage-id>.pw" file there smells like it could make problems in
the future.
So let the pbs pw file generator use /etc/pve/priv/storages as base
path.
Other storage should move also to that path in the future, if they
save such secrets anywhere in /etc/pve.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
sub pbs_password_file_name {
my ($scfg, $storeid) = @_;
- return "/etc/pve/priv/${storeid}.pw";
+ return "/etc/pve/priv/storage/${storeid}.pw";
}
sub pbs_set_password {