mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-19 18:48:07 +00:00
CrowdSec: Update install URL and script refresh (#3604)
* Update install URL and script refresh * Fine, have it your way
This commit is contained in:
parent
b8ad603a75
commit
629b9df30a
@ -31,7 +31,7 @@ function error_exit() {
|
|||||||
local msg="${1:-$reason}"
|
local msg="${1:-$reason}"
|
||||||
local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE"
|
local flag="${RD}‼ ERROR ${CL}$EXIT@$LINE"
|
||||||
echo -e "$flag $msg" 1>&2
|
echo -e "$flag $msg" 1>&2
|
||||||
exit $EXIT
|
exit "$EXIT"
|
||||||
}
|
}
|
||||||
if command -v pveversion >/dev/null 2>&1; then
|
if command -v pveversion >/dev/null 2>&1; then
|
||||||
echo -e "⚠️ Can't Install on Proxmox "
|
echo -e "⚠️ Can't Install on Proxmox "
|
||||||
@ -46,7 +46,7 @@ while true; do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
clear
|
clear
|
||||||
function header_info {
|
function header_info() {
|
||||||
echo -e "${BL}
|
echo -e "${BL}
|
||||||
_____ _ _____
|
_____ _ _____
|
||||||
/ ____| | |/ ____|
|
/ ____| | |/ ____|
|
||||||
@ -73,7 +73,7 @@ msg_info "Setting up ${APP} Repository"
|
|||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
apt-get install -y curl &>/dev/null
|
apt-get install -y curl &>/dev/null
|
||||||
apt-get install -y gnupg &>/dev/null
|
apt-get install -y gnupg &>/dev/null
|
||||||
curl -fsSL https://packagecloud.io/install/repositories/crowdsec/crowdsec/script.deb.sh | bash &>/dev/null
|
curl -fsSL "https://install.crowdsec.net" | bash &>/dev/null
|
||||||
msg_ok "Setup ${APP} Repository"
|
msg_ok "Setup ${APP} Repository"
|
||||||
|
|
||||||
msg_info "Installing ${APP}"
|
msg_info "Installing ${APP}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user