blob: 2ff602a3c6c937f568ad842631223434c68191ff [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001#!/bin/bash
2
3if [[ "${SKIP_SOGO}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
4 echo "SKIP_SOGO=y, skipping SOGo..."
5 sleep 365d
6 exit 0
7fi
8
9if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
10 cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf
11fi
12
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020013# Run hooks
14for file in /hooks/*; do
15 if [ -x "${file}" ]; then
16 echo "Running hook ${file}"
17 "${file}"
18 fi
19done
20
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010021exec "$@"