REAMDE, copyright: Correct locations for GPL, and contact info.
[userv-utils] / debian / userv-dyndns / postinst
CommitLineData
711a0748 1# Copyright (C) 1999-2000,2003 Ian Jackson
2#
3# This file is part of dyndns, part of userv-utils
4#
5# This is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with userv-utils; if not, write to the Free Software
17# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18#
19# $Id$
20
6362f12c 21#!/bin/sh
22set -e
23
24user="$(sed -n '/^[a-z]/{p;q;}' /etc/userv/dyndns-service-users)"
25if id $user >/dev/null 2>&1; then exit 0; fi
26
27adduser --system --group --gecos 'userv dyndns' \
28 --home /etc/userv