diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-23 10:24:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:47:40 -0500 |
commit | 300ed48aeaf33798f09e8e6285cc595972daf6f5 (patch) | |
tree | 7c202ec69ab296148946fcfa64e923f510af9d74 /packaging/debian/samba-server.postinst | |
parent | 2cd2c87e889d7a852e3fe94e37c18fe60daf7b9c (diff) | |
download | samba-300ed48aeaf33798f09e8e6285cc595972daf6f5.tar.gz samba-300ed48aeaf33798f09e8e6285cc595972daf6f5.tar.bz2 samba-300ed48aeaf33798f09e8e6285cc595972daf6f5.zip |
r12443: Forgot to rename two files
(This used to be commit abec9301635aea334f32a86a5414f2fd6174ea76)
Diffstat (limited to 'packaging/debian/samba-server.postinst')
-rw-r--r-- | packaging/debian/samba-server.postinst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packaging/debian/samba-server.postinst b/packaging/debian/samba-server.postinst new file mode 100644 index 0000000000..b29d2518cc --- /dev/null +++ b/packaging/debian/samba-server.postinst @@ -0,0 +1,28 @@ +#! /bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_get samba-server/setup-pdc || true + +if [ "$RET" = "true" ]; then + db_get samba-server/realm + REALM="$RET" + + db_get samba-server/domain + DOMAIN="$RET" + + db_get samba-server/password + PASSWORD="$RET" + + db_stop + + /usr/lib/samba/setup/provision --realm="$REALM" --domain="$DOMAIN" --adminpass="$PASSWORD" +else + db_stop +fi + +#DEBHELPER# + +exit 0 |