mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
300ed48aea
(This used to be commit abec930163
)
29 lines
395 B
Bash
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
|