From 462537a270ee7375cfaf6d8369ffbf70d9f2aea4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 19 Feb 2020 14:51:00 +0100 Subject: [PATCH] namespace storage specific secret files to 'priv/storage' folder As /etc/pve/priv is already pretty polluted, having a ".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 --- PVE/Storage/PBSPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index 2c2a131..6c4d15b 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -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 {