mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 06:21:56 +00:00
Update and rename crowdsec-v3.sh to crowdsec.sh
This commit is contained in:
parent
231cad52d7
commit
fd66a153c6
@ -10,6 +10,7 @@ BFR="\\r\\033[K"
|
|||||||
HOLD="-"
|
HOLD="-"
|
||||||
CM="${GN}✓${CL}"
|
CM="${GN}✓${CL}"
|
||||||
APP="CrowdSec"
|
APP="CrowdSec"
|
||||||
|
hostname="$(hostname)"
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o errtrace
|
set -o errtrace
|
||||||
set -o nounset
|
set -o nounset
|
||||||
@ -28,7 +29,7 @@ function error_exit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
read -p "This will Install ${APP}. Proceed(y/n)?" yn
|
read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn
|
||||||
case $yn in
|
case $yn in
|
||||||
[Yy]* ) break;;
|
[Yy]* ) break;;
|
||||||
[Nn]* ) exit;;
|
[Nn]* ) exit;;
|
||||||
@ -41,7 +42,7 @@ echo -e "${BL}
|
|||||||
_____ _ _____
|
_____ _ _____
|
||||||
/ ____| | |/ ____|
|
/ ____| | |/ ____|
|
||||||
| | _ __ _____ ____| | (___ ___ ___
|
| | _ __ _____ ____| | (___ ___ ___
|
||||||
| | v3 | __/ _ \ \ /\ / / _ |\___ \ / _ \/ __|
|
| | | __/ _ \ \ /\ / / _ |\___ \ / _ \/ __|
|
||||||
| |____| | | (_) \ V V / (_| |____) | __/ (__
|
| |____| | | (_) \ V V / (_| |____) | __/ (__
|
||||||
\_____|_| \___/ \_/\_/ \__ _|_____/ \___|\___|
|
\_____|_| \___/ \_/\_/ \__ _|_____/ \___|\___|
|
||||||
${CL}"
|
${CL}"
|
||||||
@ -68,7 +69,7 @@ msg_ok "Setup ${APP} Repository"
|
|||||||
msg_info "Installing ${APP}"
|
msg_info "Installing ${APP}"
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
apt-get install -y crowdsec &>/dev/null
|
apt-get install -y crowdsec &>/dev/null
|
||||||
msg_ok "Installed ${APP}"
|
msg_ok "Installed ${APP} on $hostname"
|
||||||
|
|
||||||
msg_info "Installing ${APP} Common Bouncer"
|
msg_info "Installing ${APP} Common Bouncer"
|
||||||
apt-get install -y crowdsec-firewall-bouncer-iptables &>/dev/null
|
apt-get install -y crowdsec-firewall-bouncer-iptables &>/dev/null
|
Loading…
Reference in New Issue
Block a user