File: update-libc.d

package info (click to toggle)
postfix 2.11.3-1%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 22,360 kB
  • ctags: 16,042
  • sloc: ansic: 111,369; makefile: 14,398; sh: 5,532; perl: 2,652; python: 1,450; awk: 148
file content (13 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
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.
/etc/init.d/postfix status >/dev/null 2>&1 || exit 0

QUEUEDIR="$(/usr/sbin/postconf -h queue_directory 2>/dev/null || true)"
if [ -n "$QUEUEDIR" ]; then
    cp /etc/resolv.conf ${QUEUEDIR}/etc/resolv.conf
    /etc/init.d/postfix reload >/dev/null 2>&1 || exit 0
fi

exit 0