1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
samba-mirror/packaging/debian/samba-server.postinst

29 lines
395 B
Plaintext
Raw Normal View History

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