mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 10:09:49 +00:00
FIX Build Fails - change to TERM=linux
This commit is contained in:
parent
252b9cd9b1
commit
b3c20aec7f
20 changed files with 50 additions and 52 deletions
|
@ -43,7 +43,6 @@
|
|||
|
||||
set -e
|
||||
set -o pipefail
|
||||
#export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
|
@ -57,7 +56,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
#defaultcolor=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -43,10 +43,11 @@ export TERM=xterm
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +56,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# Variables
|
||||
|
|
|
@ -45,12 +45,11 @@
|
|||
|
||||
set -e
|
||||
set -o pipefail
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -59,7 +58,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# --------------
|
||||
# File Variables
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
set -e
|
||||
set -o pipefail
|
||||
#export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -43,10 +43,11 @@ export TERM=xterm
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +56,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# Variables
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
set -e
|
||||
set -o pipefail
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -48,7 +48,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -57,7 +56,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# Variables
|
||||
|
|
|
@ -41,12 +41,11 @@
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ------------------------------
|
||||
# Specify Input and Output Files
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# -------------------------------------------
|
||||
# For Testing REGEX and False Positives Cases
|
||||
|
@ -51,6 +51,11 @@ export TERM=xterm
|
|||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -59,7 +64,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# -----------------------------
|
||||
# USER-AGENT ARRAY - MUST MATCH
|
||||
|
|
|
@ -43,10 +43,11 @@ export TERM=xterm
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +56,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,8 +54,8 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
#thisip=$(dig +short myip.opendns.com @resolver1.opendns.com)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
thisip=$(ip -o route get to 8.8.8.8 | sed -n 's/.*src \([0-9.]\+\).*/\1/p')
|
||||
|
||||
# ---------
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
# #
|
||||
##############################################################################
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# MIT License
|
||||
|
@ -46,7 +46,6 @@ export TERM=xterm
|
|||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -41,12 +41,11 @@
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -41,12 +41,11 @@
|
|||
# SOFTWARE.
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export TERM=xterm
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -55,7 +54,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# FUNCTIONS
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
|
||||
export TERM=linux
|
||||
|
||||
# ------------------------
|
||||
# Set Terminal Font Colors
|
||||
# ------------------------
|
||||
bold=$(tput bold)
|
||||
red=$(tput setaf 1)
|
||||
green=$(tput setaf 2)
|
||||
|
@ -40,7 +45,7 @@ blue=$(tput setaf 4)
|
|||
magenta=$(tput setaf 5)
|
||||
cyan=$(tput setaf 6)
|
||||
white=$(tput setaf 7)
|
||||
defaultcolor=$(tput setaf default)
|
||||
defaultcolor=$(tput setaf 7)
|
||||
|
||||
# ---------
|
||||
# Variables
|
||||
|
|
Loading…
Add table
Reference in a new issue