pbs: ensure storage secret file directory exists
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
@ -66,6 +66,7 @@ sub pbs_set_password {
|
|||||||
my ($scfg, $storeid, $password) = @_;
|
my ($scfg, $storeid, $password) = @_;
|
||||||
|
|
||||||
my $pwfile = pbs_password_file_name($scfg, $storeid);
|
my $pwfile = pbs_password_file_name($scfg, $storeid);
|
||||||
|
mkdir "/etc/pve/priv/storage";
|
||||||
|
|
||||||
PVE::Tools::file_set_contents($pwfile, "$password\n");
|
PVE::Tools::file_set_contents($pwfile, "$password\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user