mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-06 20:20:57 +00:00
ceph: setup symlinks: ensure global ceph config directory exists
normally this gets created on package installation, but could be deleted, e.g., by a debug purge. As it costs nothing to create just do a mkdir on it, which does not fails if it already exists.. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
d558d296f7
commit
c5a673ed1d
@ -216,6 +216,7 @@ sub setup_pve_symlinks {
|
|||||||
die "file '$ceph_cfgpath' already exists\n"
|
die "file '$ceph_cfgpath' already exists\n"
|
||||||
if !$lnk || $lnk ne $pve_ceph_cfgpath;
|
if !$lnk || $lnk ne $pve_ceph_cfgpath;
|
||||||
} else {
|
} else {
|
||||||
|
mkdir $ceph_cfgdir;
|
||||||
symlink($pve_ceph_cfgpath, $ceph_cfgpath) ||
|
symlink($pve_ceph_cfgpath, $ceph_cfgpath) ||
|
||||||
die "unable to create symlink '$ceph_cfgpath' - $!\n";
|
die "unable to create symlink '$ceph_cfgpath' - $!\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user