mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
* start 3.6 * Remove backup retention reference * dbclient_warning removed * remove extra linebreaks * remove backup task * Increased backup and integrity timeouts to 240 * Remove brackets from message codes * Arrow for info * Different arrow * Ain't gonna restore no more * Abortion aborted * format change for config test * All kinds of yes and no * echo_grav * Move advanced to the end * removed custom ssh, ping check and port options from wizard * primary address changes * rework user input * good clean fun * smaller version text * less info * Set push commands to default 240 second timeout * Remove reference to backup and restore tasks from log output * Remove backup refs * Move UI elements over to gs-ui * Move ICMP to UI * More UI * More UI * UI changes * Add end config * Spaces and such * MOre UI * UI * UI UI UI * UI UI * echo_blue * echo_blue too * switch * fip flop * Too blue * Fix path being run * = * Remove () * continued cleaning * Almost done rewriting config * switch CNAME defaults * Add CNAME function
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# GRAVITY SYNC BY VMSTAN #####################
|
|
# gs-intent.sh ###############################
|
|
|
|
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
|
# This code is called from the main gravity-sync.sh file and should not execute directly!
|
|
|
|
## Validate Intent
|
|
function intent_validate {
|
|
if [ "$VERIFY_PASS" == "0" ]
|
|
then
|
|
PHASER=$((( RANDOM % 4 ) + 1 ))
|
|
if [ "$PHASER" = "1" ]
|
|
then
|
|
INTENT="FIRE PHOTON TORPEDOS"
|
|
elif [ "$PHASER" = "2" ]
|
|
then
|
|
INTENT="FIRE ALL PHASERS"
|
|
elif [ "$PHASER" = "3" ]
|
|
then
|
|
INTENT="EJECT THE WARPCORE"
|
|
elif [ "$PHASER" = "4" ]
|
|
then
|
|
INTENT="ENGAGE TRACTOR BEAM"
|
|
fi
|
|
|
|
MESSAGE="Type ${INTENT} to confirm"
|
|
echo_need
|
|
|
|
read INPUT_INTENT
|
|
|
|
if [ "${INPUT_INTENT}" != "${INTENT}" ]
|
|
then
|
|
MESSAGE="${TASKTYPE} excited"
|
|
echo_info
|
|
exit_nochange
|
|
fi
|
|
else
|
|
MESSAGE="Verification bypassed"
|
|
echo_warn
|
|
fi
|
|
} |