[SOGo] Check if master, only run DB prep if master, use correct syslog-ng config if not master

This commit is contained in:
andryyy
2020-02-05 10:59:32 +01:00
parent b889c70db8
commit 6898e6c8f9
6 changed files with 118 additions and 15 deletions

View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf
fi
exec "$@"