r12442: only set the "wins server" parameter if it's not set
[jelmer/samba4-debian.git] / packaging / debian / samba4-server.postinst
1 #! /bin/sh
2
3 set -e
4
5 . /usr/share/debconf/confmodule
6
7 db_get samba-server/setup-pdc || true
8
9 if [ "$RET" = "true" ]; then
10         db_get samba-server/realm
11         REALM="$RET"
12
13         db_get samba-server/domain
14         DOMAIN="$RET"
15
16         db_get samba-server/password
17         PASSWORD="$RET"
18
19         db_stop
20
21         /usr/lib/samba/setup/provision --realm="$REALM" --domain="$DOMAIN" --adminpass="$PASSWORD"
22 else
23         db_stop
24 fi
25
26 #DEBHELPER#
27
28 exit 0