diff options
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 |