docker-entrypoint.sh 387 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. if [[ "${SKIP_SOGO}" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
  3. echo "SKIP_SOGO=y, skipping SOGo..."
  4. sleep 365d
  5. exit 0
  6. fi
  7. if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
  8. cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf
  9. fi
  10. # Run hooks
  11. for file in /hooks/*; do
  12. if [ -x "${file}" ]; then
  13. echo "Running hook ${file}"
  14. "${file}"
  15. fi
  16. done
  17. exec "$@"