]> git.proxmox.com Git - pve-storage.git/commitdiff
namespace storage specific secret files to 'priv/storage' folder
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Feb 2020 13:51:00 +0000 (14:51 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Feb 2020 14:00:54 +0000 (15:00 +0100)
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>
PVE/Storage/PBSPlugin.pm

index 2c2a1314fa795a66b5f2b76cf091b5e317e54d87..6c4d15b1f31e01def0e7c201054383c986bf9bdf 100644 (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 {