Imported Debian patch 1:1.05-8
[hcoop/zz_old/debian/djbdns.git] / debian / dnscache-run.preinst
CommitLineData
b4588d5c
GP
1#!/bin/sh
2set -e
3
4test "$1" = 'install' || exit 0
5test -z "$2" || exit 0
6
7# not upgrading
8for i in Gdnscache Gdnslog; do
9 getent passwd $i >/dev/null ||
10 adduser --quiet --system --force-badname --shell /bin/false --group \
11 --home /nonexistent --no-create-home $i || exit 1;
12done