From 9e34813f6ce4a2875e756c957e4af730c2252c15 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 20 Feb 2020 11:12:29 +0100 Subject: [PATCH] pbs: ensure storage secret file directory exists Signed-off-by: Thomas Lamprecht --- PVE/Storage/PBSPlugin.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index 707337d..b47a188 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -66,6 +66,7 @@ sub pbs_set_password { my ($scfg, $storeid, $password) = @_; my $pwfile = pbs_password_file_name($scfg, $storeid); + mkdir "/etc/pve/priv/storage"; PVE::Tools::file_set_contents($pwfile, "$password\n"); }