mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Verification bypass mechanism
This commit is contained in:
parent
f86b857997
commit
bb453c0ce9
@ -25,4 +25,5 @@ REMOTE_PASS=''
|
|||||||
# SSH_PKIF=''
|
# SSH_PKIF=''
|
||||||
# LOG_PATH=''
|
# LOG_PATH=''
|
||||||
# SYNCING_LOG=''
|
# SYNCING_LOG=''
|
||||||
# CRONJOB_LOG=''
|
# CRONJOB_LOG=''
|
||||||
|
# VERIFY_PASS='0'
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# GRAVITY SYNC BY VMSTAN #####################
|
# GRAVITY SYNC BY VMSTAN #####################
|
||||||
PROGRAM='Gravity Sync'
|
PROGRAM='Gravity Sync'
|
||||||
VERSION='1.5.0'
|
VERSION='1.6.0'
|
||||||
|
|
||||||
# Execute from the home folder of the user who owns it (ex: 'cd ~/gravity-sync')
|
# Execute from the home folder of the user who owns it (ex: 'cd ~/gravity-sync')
|
||||||
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
|
||||||
@ -24,6 +24,9 @@ LOG_PATH="$HOME/${LOCAL_FOLDR}" # replace in gravity-sync.conf to overwrite
|
|||||||
SYNCING_LOG='gravity-sync.log' # replace in gravity-sync.conf to overwrite
|
SYNCING_LOG='gravity-sync.log' # replace in gravity-sync.conf to overwrite
|
||||||
CRONJOB_LOG='gravity-sync.cron' # replace in gravity-sync.conf to overwrite
|
CRONJOB_LOG='gravity-sync.cron' # replace in gravity-sync.conf to overwrite
|
||||||
|
|
||||||
|
# Interaction Customization
|
||||||
|
VERIFY_PASS='0' # replace in gravity-sync.conf to overwrite
|
||||||
|
|
||||||
# PH Folder/File Locations
|
# PH Folder/File Locations
|
||||||
PIHOLE_DIR='/etc/pihole' # default PH data directory
|
PIHOLE_DIR='/etc/pihole' # default PH data directory
|
||||||
GRAVITY_FI='gravity.db' # default PH database file
|
GRAVITY_FI='gravity.db' # default PH database file
|
||||||
@ -476,31 +479,37 @@ function md5_compare {
|
|||||||
|
|
||||||
## Validate Intent
|
## Validate Intent
|
||||||
function intent_validate {
|
function intent_validate {
|
||||||
PHASER=$(( ( RANDOM % 4 ) + 1 ))
|
if [ "$VERIFY_PASS" == "0" ]
|
||||||
if [ "$PHASER" = "1" ]
|
|
||||||
then
|
then
|
||||||
INTENT="FIRE PHOTON TORPEDOS"
|
PHASER=$((( RANDOM % 4 ) + 1 ))
|
||||||
elif [ "$PHASER" = "2" ]
|
if [ "$PHASER" = "1" ]
|
||||||
then
|
then
|
||||||
INTENT="FIRE ALL PHASERS"
|
INTENT="FIRE PHOTON TORPEDOS"
|
||||||
elif [ "$PHASER" = "3" ]
|
elif [ "$PHASER" = "2" ]
|
||||||
then
|
then
|
||||||
INTENT="EJECT THE WARPCORE"
|
INTENT="FIRE ALL PHASERS"
|
||||||
elif [ "$PHASER" = "4" ]
|
elif [ "$PHASER" = "3" ]
|
||||||
then
|
then
|
||||||
INTENT="ENGAGE TRACTOR BEAM"
|
INTENT="EJECT THE WARPCORE"
|
||||||
fi
|
elif [ "$PHASER" = "4" ]
|
||||||
|
then
|
||||||
MESSAGE="Enter ${INTENT} at this prompt to confirm"
|
INTENT="ENGAGE TRACTOR BEAM"
|
||||||
echo_need
|
fi
|
||||||
|
|
||||||
|
MESSAGE="Enter ${INTENT} at this prompt to confirm"
|
||||||
|
echo_need
|
||||||
|
|
||||||
read INPUT_INTENT
|
read INPUT_INTENT
|
||||||
|
|
||||||
if [ "${INPUT_INTENT}" != "${INTENT}" ]
|
if [ "${INPUT_INTENT}" != "${INTENT}" ]
|
||||||
then
|
then
|
||||||
MESSAGE="${TASKTYPE} Aborted"
|
MESSAGE="${TASKTYPE} Aborted"
|
||||||
echo_info
|
echo_info
|
||||||
exit_nochange
|
exit_nochange
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
MESSAGE="Verification Bypassed"
|
||||||
|
echo_warn
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user