Don't reboot if purge fails
This commit is contained in:
parent
2e4fddf284
commit
d48a7dbab6
4
purge.sh
4
purge.sh
|
@ -38,10 +38,8 @@ for host in $@; do
|
||||||
sudo umount /var/lib/ceph;
|
sudo umount /var/lib/ceph;
|
||||||
sudo mkfs.ext4 /dev/vgx/ceph;
|
sudo mkfs.ext4 /dev/vgx/ceph;
|
||||||
sudo mount /var/lib/ceph;
|
sudo mount /var/lib/ceph;
|
||||||
' &>/dev/null
|
' &>/dev/null || continue
|
||||||
echo "done."
|
echo "done."
|
||||||
done
|
|
||||||
for host in $@; do
|
|
||||||
echo -n "Rebooting host ${host}... "
|
echo -n "Rebooting host ${host}... "
|
||||||
ssh deploy@${host} '
|
ssh deploy@${host} '
|
||||||
sudo reboot;
|
sudo reboot;
|
||||||
|
|
Loading…
Reference in New Issue