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