1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/packaging/debian/samba-server.postinst
Jelmer Vernooij 300ed48aea r12443: Forgot to rename two files
(This used to be commit abec930163)
2007-10-10 13:47:40 -05:00

29 lines
395 B
Bash

#! /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