]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd: create ceph keyring dir before copying
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 7 Sep 2017 10:51:26 +0000 (12:51 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 7 Sep 2017 10:51:31 +0000 (12:51 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/API2/Storage/Config.pm

index 6c9b3b141727f0bfc7b27f2bef8c64422ad1eacc..aa8c931dca1dd18305fb33f2c025456524f5619f 100755 (executable)
@@ -170,6 +170,7 @@ __PACKAGE__->register_method ({
                        if -e $ceph_storage_keyring;
 
                    eval {
+                       mkdir '/etc/pve/priv/ceph';
                        PVE::Tools::file_copy($ceph_admin_keyring, $ceph_storage_keyring);
                    };
                    if (my $err = $@) {