mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
install coreutils under alpine; do not copy notification configuration (#1044)
under Docker; assume systemctl is not running if it does not exist
This commit is contained in:
parent
8b0527bf9d
commit
a4998913d8
2 changed files with 9 additions and 7 deletions
13
wizard.sh
13
wizard.sh
|
@ -460,7 +460,7 @@ install_bins() {
|
|||
log_dbg "Installing crowdsec binaries"
|
||||
install -v -m 755 -D "${CROWDSEC_BIN}" "${CROWDSEC_BIN_INSTALLED}" 1> /dev/null || exit
|
||||
install -v -m 755 -D "${CSCLI_BIN}" "${CSCLI_BIN_INSTALLED}" 1> /dev/null || exit
|
||||
systemctl is-active --quiet crowdsec
|
||||
which systemctl && systemctl is-active --quiet crowdsec
|
||||
if [ $? -eq 0 ]; then
|
||||
systemctl stop crowdsec
|
||||
fi
|
||||
|
@ -492,13 +492,14 @@ install_plugins(){
|
|||
mkdir -p /etc/crowdsec/notifications
|
||||
|
||||
cp ${SLACK_PLUGIN_BINARY} ${CROWDSEC_PLUGIN_DIR}
|
||||
cp -n ${SLACK_PLUGIN_CONFIG} /etc/crowdsec/notifications
|
||||
|
||||
cp ${SPLUNK_PLUGIN_BINARY} ${CROWDSEC_PLUGIN_DIR}
|
||||
cp -n ${SPLUNK_PLUGIN_CONFIG} /etc/crowdsec/notifications
|
||||
|
||||
cp ${HTTP_PLUGIN_BINARY} ${CROWDSEC_PLUGIN_DIR}
|
||||
cp -n ${HTTP_PLUGIN_CONFIG} /etc/crowdsec/notifications
|
||||
|
||||
if [[ ${DOCKER_MODE} == "false" ]]; then
|
||||
cp -n ${SLACK_PLUGIN_CONFIG} /etc/crowdsec/notifications/
|
||||
cp -n ${SPLUNK_PLUGIN_CONFIG} /etc/crowdsec/notifications/
|
||||
cp -n ${HTTP_PLUGIN_CONFIG} /etc/crowdsec/notifications/
|
||||
fi
|
||||
}
|
||||
|
||||
check_running_bouncers() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue