mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
wizard: while installing, don't hide hub download/timeout errors (#2710)
* wizard: while installing, don't hide hub download/timeout errors * lint, whitespace
This commit is contained in:
parent
260f5a7992
commit
aa4f02c798
1 changed files with 45 additions and 45 deletions
|
@ -272,10 +272,10 @@ install_collection() {
|
|||
|
||||
for collection in "${COLLECTION_TO_INSTALL[@]}"; do
|
||||
log_info "Installing collection '${collection}'"
|
||||
${CSCLI_BIN_INSTALLED} collections install "${collection}" > /dev/null 2>&1 || log_err "fail to install collection ${collection}"
|
||||
${CSCLI_BIN_INSTALLED} collections install "${collection}" --error
|
||||
done
|
||||
|
||||
${CSCLI_BIN_INSTALLED} parsers install "crowdsecurity/whitelists" > /dev/null 2>&1 || log_err "fail to install collection crowdsec/whitelists"
|
||||
${CSCLI_BIN_INSTALLED} parsers install "crowdsecurity/whitelists" --error
|
||||
if [[ ${SILENT} == "false" ]]; then
|
||||
whiptail --msgbox "Out of safety, I installed a parser called 'crowdsecurity/whitelists'. This one will prevent private IP addresses from being banned, feel free to remove it any time." 20 50
|
||||
fi
|
||||
|
@ -685,7 +685,7 @@ main() {
|
|||
log_info "installing crowdsec"
|
||||
install_crowdsec
|
||||
log_dbg "configuring ${CSCLI_BIN_INSTALLED}"
|
||||
${CSCLI_BIN_INSTALLED} hub update > /dev/null 2>&1 || (log_err "fail to update crowdsec hub. exiting" && exit 1)
|
||||
${CSCLI_BIN_INSTALLED} hub update --error || (log_err "fail to update crowdsec hub. exiting" && exit 1)
|
||||
|
||||
# detect running services
|
||||
detect_services
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue