1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-02-04 11:37:14 +00:00
Files
mailcow-dockerized/data/Dockerfiles/sogo/docker-entrypoint.sh
2025-02-28 15:36:19 +01:00

24 lines
417 B
Bash
Executable File

#!/bin/bash
if [[ "${SKIP_SOGO}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
echo "SKIP_SOGO=y, skipping SOGo..."
sleep 365d
exit 0
fi
if [[ ! -z ${VALKEY_SLAVEOF_IP} ]]; then
cp /etc/syslog-ng/syslog-ng-valkey_slave.conf /etc/syslog-ng/syslog-ng.conf
fi
echo "$TZ" > /etc/timezone
# Run hooks
for file in /hooks/*; do
if [ -x "${file}" ]; then
echo "Running hook ${file}"
"${file}"
fi
done
exec "$@"