
| Current Path : /var/spool/mail/etc/resolvconf/update-libc.d/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/spool/mail/etc/resolvconf/update-libc.d/postfix |
#!/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