[ceph] prevent from removing monitor on itself

This commit is contained in:
Nico Schottelius 2023-04-17 13:32:30 +02:00
parent 2108400c40
commit f76db6ea6b

View file

@ -1,11 +1,12 @@
#!/bin/sh
if [ $# -ne 0 ]; then
echo "$0 (no arguments"
if [ $# -ne 1 ]; then
echo "$0 <monitor>"
echo "f.i. $0 serverX"
exit 1
fi
mon=mon.$(hostname)
mon=mon.$1
# Starting with monit, if available
if [ -e /etc/monit ]; then