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