rbd: create ceph keyring dir before copying
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
@ -170,6 +170,7 @@ __PACKAGE__->register_method ({
|
|||||||
if -e $ceph_storage_keyring;
|
if -e $ceph_storage_keyring;
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
|
mkdir '/etc/pve/priv/ceph';
|
||||||
PVE::Tools::file_copy($ceph_admin_keyring, $ceph_storage_keyring);
|
PVE::Tools::file_copy($ceph_admin_keyring, $ceph_storage_keyring);
|
||||||
};
|
};
|
||||||
if (my $err = $@) {
|
if (my $err = $@) {
|
||||||
|
|||||||
Reference in New Issue
Block a user