namespace storage specific secret files to 'priv/storage' folder

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>
This commit is contained in:
Thomas Lamprecht
2020-02-19 14:51:00 +01:00
parent 1574a590a5
commit 462537a270

View File

@ -59,7 +59,7 @@ sub options {
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 {