config is in samba4 4.0.0~alpha18.dfsg1-4ubuntu2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh
set -e
. /usr/share/debconf/confmodule
db_title "Samba Server"
SERVER_ROLE=`samba-tool testparm --parameter-name="server role" | tail -1 2>/dev/null` || SERVER_ROLE="standalone"
if [ ! -z "$SERVER_ROLE" ]; then
db_set samba4/server-role "$SERVER_ROLE"
fi
#
# Are we upgrading from Samba 3, and already have a configuration file?
# If so, the user might want to try the automatic upgrading.
#
if [ -n "$2" ] && dpkg --compare-versions "$2" lt "3.9.0"; then
if [ -f /etc/samba/smb.conf ]; then
db_input medium samba4/upgrade-from-v3 || true
db_go || true
fi
fi
db_input medium samba4/server-role || true
db_go
db_get samba4/server-role || true
SERVER_ROLE="$RET"
REALM=`samba-tool testparm --parameter-name=realm | tail -1 2>/dev/null` || REALM=""
if [ -z "$REALM" ]; then
REALM=`hostname -d | tr 'a-z' 'A-Z'`
fi
db_set samba4/realm "$REALM"
db_input medium samba4/realm || true
db_go
|