]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/Ceph.pm
ceph: introduce '/etc/pve/ceph'
[pve-manager.git] / PVE / API2 / Ceph.pm
index 81c17d6e464cedfb7a8011bffda4d3cad09f6bad..7fedb87a5f8f3701a8158742ca38650f35e4a26b 100644 (file)
@@ -192,6 +192,11 @@ __PACKAGE__->register_method ({
            PVE::Ceph::Tools::check_ceph_installed('ceph_bin');
        }
 
+       my $pve_ceph_cfgdir = PVE::Ceph::Tools::get_config('pve_ceph_cfgdir');
+       if (! -d $pve_ceph_cfgdir) {
+           File::Path::make_path($pve_ceph_cfgdir);
+       }
+
        my $auth = $param->{disable_cephx} ? 'none' : 'cephx';
 
        # simply load old config if it already exists