Fix pid dir permissions for ceph mon

This commit is contained in:
Nico Schottelius 2018-03-08 13:43:26 +01:00
parent dc191f6fe5
commit bfe5e19c08

View file

@ -10,6 +10,9 @@ fname=$1
ceph-mon --mkfs -i $(hostname) --keyring "$fname" --setuser ceph --setgroup ceph
touch /var/lib/ceph/mon/ceph-$(hostname)/sysvinit
# Fix broken permissions
chown ceph:ceph /var/run/ceph/
# Starting with monit, if available
if [ -e /etc/monit ]; then
/opt/ungleich-tools/monit-ceph-create-start mon.$(hostname)