[Postfix] Add hooks

This commit is contained in:
andryyy
2020-02-19 21:41:06 +01:00
parent a4e5400f67
commit c54cfbf332
2 changed files with 10 additions and 1 deletions

View File

@@ -1,5 +1,13 @@
#!/bin/bash
# Run hooks
for file in /hooks/*; do
if [ -x "${file}" ]; then
echo "Running hook ${file}"
"${file}"
fi
done
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf
fi