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
|
@ -272,10 +272,10 @@ install_collection() {
|
||||||
|
|
||||||
for collection in "${COLLECTION_TO_INSTALL[@]}"; do
|
for collection in "${COLLECTION_TO_INSTALL[@]}"; do
|
||||||
log_info "Installing collection '${collection}'"
|
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
|
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
|
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
|
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
|
fi
|
||||||
|
@ -685,7 +685,7 @@ main() {
|
||||||
log_info "installing crowdsec"
|
log_info "installing crowdsec"
|
||||||
install_crowdsec
|
install_crowdsec
|
||||||
log_dbg "configuring ${CSCLI_BIN_INSTALLED}"
|
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 running services
|
||||||
detect_services
|
detect_services
|
||||||
|
|
Loading…
Reference in a new issue