mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-06 17:22:57 +01:00
Removing mail handler from update.sh
This commit is contained in:
committed by
GitHub
parent
8bfbdcbe44
commit
6ac1503263
@@ -2,13 +2,9 @@
|
|||||||
|
|
||||||
/opt/dev/update.sh
|
/opt/dev/update.sh
|
||||||
|
|
||||||
if [ "${LOG_MAIL_ENABLED}" = "true" ]; then
|
|
||||||
sed -i "s/return\ logger/### Code added to fix unexistent mail handler ###\n mail_handler=logging.handlers.SMTPHandler(mailhost = ('${LOG_MAIL_MAILHOST}', ${LOG_MAIL_PORT}),fromaddr = '${LOG_MAIL_FROMADDR}',toaddrs = ['${LOG_MAIL_TOADDR}'],subject = '${LOG_MAIL_SUBJECT}',credentials = ${LOG_MAIL_CREDENTIALS}, secure = ${LOG_MAIL_SECURE} )\n mail_handler.setLevel(${LOG_MAIL_LEVEL})\n mail_handler.setFormatter(logging.Formatter(LOG_FORMAT))\n logger.addHandler(mail_handler)\n aux_logger = logger\n return aux_logger\n ### End code added to fix unexistent mail handler ###/g" /opt/intelmq/intelmq/lib/utils.py
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${ENABLE_BOTNET_AT_BOOT}" = "true" ]; then
|
if [ "${ENABLE_BOTNET_AT_BOOT}" = "true" ]; then
|
||||||
intelmqctl start
|
intelmqctl start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
/opt/entrypoint.sh
|
/opt/entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user