Commit | Line | Data |
---|---|---|
b4588d5c GP |
1 | #!/bin/sh |
2 | set -e | |
3 | ||
4 | test "$1" = 'install' || exit 0 | |
5 | test -z "$2" || exit 0 | |
6 | ||
7 | # not upgrading | |
8 | for 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; | |
12 | done |