Don't reboot if purge fails

This commit is contained in:
Joshua Boniface 2021-12-20 04:41:03 -05:00
parent 2e4fddf284
commit d48a7dbab6
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;