From d48a7dbab6d63e7d3f558a7c1a1ed4e6284a4f37 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 20 Dec 2021 04:41:03 -0500 Subject: [PATCH] Don't reboot if purge fails --- purge.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/purge.sh b/purge.sh index ebbd931..0ab3ece 100755 --- a/purge.sh +++ b/purge.sh @@ -38,10 +38,8 @@ for host in $@; do sudo umount /var/lib/ceph; sudo mkfs.ext4 /dev/vgx/ceph; sudo mount /var/lib/ceph; - ' &>/dev/null + ' &>/dev/null || continue echo "done." -done -for host in $@; do echo -n "Rebooting host ${host}... " ssh deploy@${host} ' sudo reboot;