mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-04 09:19:31 +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"
|
||||
if !$lnk || $lnk ne $pve_ceph_cfgpath;
|
||||
} else {
|
||||
mkdir $ceph_cfgdir;
|
||||
symlink($pve_ceph_cfgpath, $ceph_cfgpath) ||
|
||||
die "unable to create symlink '$ceph_cfgpath' - $!\n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user