Skip to content

Commit 12a4eec

Browse files
obnoxxxphlogistonjohn
authored andcommitted
ad-server: provision: introduce variable for dc name
Signed-off-by: Michael Adam <[email protected]>
1 parent e6552e2 commit 12a4eec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/ad-server/provision.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -e
44

55
REALM="DOMAIN1.SINK.TEST"
66
DOMAIN="DOMAIN1"
7+
DCNAME="samba1"
78
PW="Passw0rd"
89

910
#if ! grep -q $HOSTNAME /etc/hosts ; then
@@ -14,7 +15,7 @@ PW="Passw0rd"
1415
echo 'Provisioning...'
1516

1617
samba-tool domain provision \
17-
--option="netbios name=samba1" \
18+
--option="netbios name=${DCNAME}" \
1819
--use-rfc2307 \
1920
--dns-backend="SAMBA_INTERNAL" \
2021
--server-role=dc \

0 commit comments

Comments
 (0)