From 98c35865116b6cb6a024bf110095f32c237e83ae Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:24 -0400 Subject: [PATCH] Add nice warning to purge script --- purge.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/purge.sh b/purge.sh index 4847d4d..b9a3833 100755 --- a/purge.sh +++ b/purge.sh @@ -1,5 +1,13 @@ #!/bin/bash +echo -e "DANGER: This script will PURGE ALL PVC data and configuration from the following host(s):" +echo +echo -e " $@" +echo +echo -e "Are you sure you want to continue?" +echo +echo -en "To abort, press now. To continue, press . " +read for host in $@; do ssh deploy@${host} "