mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Change push confirmation method
This commit is contained in:
parent
24662dd16d
commit
88e30377e3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user