summaryrefslogtreecommitdiffstats
path: root/debian/update-libc.d
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:46:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 01:46:31 +0000
commit32afea41ba8b7328e252ae97ca32c56f98d42a90 (patch)
tree11b25ffd59d9190c8316cd48ace4e198531d0e7d /debian/update-libc.d
parentAdding upstream version 3.4.23. (diff)
downloadpostfix-32afea41ba8b7328e252ae97ca32c56f98d42a90.tar.xz
postfix-32afea41ba8b7328e252ae97ca32c56f98d42a90.zip
Adding debian version 3.4.23-0+deb10u1.debian/3.4.23-0+deb10u1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/update-libc.d')
-rw-r--r--debian/update-libc.d13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/update-libc.d b/debian/update-libc.d
new file mode 100644
index 0000000..1db67d2
--- /dev/null
+++ b/debian/update-libc.d
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+# we only need to copy this in if the service is already running.
+# if it's not running, it'll get picked up by the init script on start.
+/usr/sbin/service postfix status >/dev/null 2>&1 || exit 0
+
+QUEUEDIR="$(/usr/sbin/postconf -hx queue_directory 2>/dev/null || true)"
+if [ -n "$QUEUEDIR" ]; then
+ cp /etc/resolv.conf ${QUEUEDIR}/etc/resolv.conf
+ /usr/sbin/service postfix reload >/dev/null 2>&1 || exit 0
+fi
+
+exit 0