2020-02-05 10:59:32 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-04-29 21:08:52 +02:00
|
|
|
if [[ "${SKIP_SOGO}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
|
|
|
echo "SKIP_SOGO=y, skipping SOGo..."
|
|
|
|
sleep 365d
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2020-02-05 10:59:32 +01:00
|
|
|
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
|
|
|
|
cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf
|
|
|
|
fi
|
|
|
|
|
2021-07-28 21:41:44 +02:00
|
|
|
# Run hooks
|
|
|
|
for file in /hooks/*; do
|
|
|
|
if [ -x "${file}" ]; then
|
|
|
|
echo "Running hook ${file}"
|
|
|
|
"${file}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2020-02-05 10:59:32 +01:00
|
|
|
exec "$@"
|