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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user