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 {
|
function push_gs {
|
||||||
md5_compare
|
md5_compare
|
||||||
|
|
||||||
MESSAGE="Are you sure you want to overwrite ${GRAVITY_DB} on ${REMOTE_HOST}?"
|
MESSAGE="Enter FIRE-PHOTON-TORPEDOS at this prompt to confirm"
|
||||||
echo_warn
|
echo_need
|
||||||
select yn in "Yes" "No"; do
|
|
||||||
case $yn in
|
read INPUT_TORPEDOS
|
||||||
Yes )
|
|
||||||
|
if [ "${INPUT_TORPEDOS}" != "FIRE-PHOTON-TORPEDOS" ]
|
||||||
|
then
|
||||||
|
MESSAGE="${TASKTYPE} Aborted"
|
||||||
|
echo_info
|
||||||
|
exit_nochange
|
||||||
|
fi
|
||||||
|
|
||||||
MESSAGE="Backing Up ${GRAVITY_FI} from ${REMOTE_HOST}"
|
MESSAGE="Backing Up ${GRAVITY_FI} from ${REMOTE_HOST}"
|
||||||
echo_stat
|
echo_stat
|
||||||
@ -234,13 +240,6 @@ function push_gs {
|
|||||||
|
|
||||||
logs_export
|
logs_export
|
||||||
exit_withchange
|
exit_withchange
|
||||||
;;
|
|
||||||
|
|
||||||
No )
|
|
||||||
exit_nochange
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function yank_gs {
|
function yank_gs {
|
||||||
|
Loading…
Reference in New Issue
Block a user