Change push confirmation method

This commit is contained in:
Michael Stanclift 2020-05-28 17:24:31 -05:00
parent 24662dd16d
commit 88e30377e3

View File

@ -192,11 +192,17 @@ function pull_gs {
function push_gs {
md5_compare
MESSAGE="Are you sure you want to overwrite ${GRAVITY_DB} on ${REMOTE_HOST}?"
echo_warn
select yn in "Yes" "No"; do
case $yn in
Yes )
MESSAGE="Enter FIRE-PHOTON-TORPEDOS at this prompt to confirm"
echo_need
read INPUT_TORPEDOS
if [ "${INPUT_TORPEDOS}" != "FIRE-PHOTON-TORPEDOS" ]
then
MESSAGE="${TASKTYPE} Aborted"
echo_info
exit_nochange
fi
MESSAGE="Backing Up ${GRAVITY_FI} from ${REMOTE_HOST}"
echo_stat
@ -234,13 +240,6 @@ function push_gs {
logs_export
exit_withchange
;;
No )
exit_nochange
;;
esac
done
}
function yank_gs {