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