Don't reboot if purge fails

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:28 -04:00
parent 8692e1fd4b
commit 167599ac6c
1 changed files with 1 additions and 3 deletions

View File

@ -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;