2020-02-05 17:58:04 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-02-20 04:41:06 +08:00
|
|
|
# Run hooks
|
|
|
|
for file in /hooks/*; do
|
|
|
|
if [ -x "${file}" ]; then
|
|
|
|
echo "Running hook ${file}"
|
|
|
|
"${file}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2020-02-05 17:58:04 +08:00
|
|
|
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
|
|
|
|
cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf
|
|
|
|
fi
|
|
|
|
|
|
|
|
exec "$@"
|