Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | # Run hooks | ||||
4 | for file in /hooks/*; do | ||||
5 | if [ -x "${file}" ]; then | ||||
6 | echo "Running hook ${file}" | ||||
7 | "${file}" | ||||
8 | fi | ||||
9 | done | ||||
10 | |||||
11 | if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then | ||||
12 | cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf | ||||
13 | fi | ||||
14 | |||||
15 | exec "$@" |