mirror of
https://git.bashclub.org/bashclub/zamba-lxc-toolbox.git
synced 2025-08-09 12:24:38 +02:00
zmb-ad-join: set dns server after install
This commit is contained in:
parent
1c74139ebd
commit
02862eb565
1 changed files with 2 additions and 0 deletions
|
@ -177,5 +177,7 @@ pct shutdown $LXC_NBR
|
||||||
if [[ $service == "zmb-ad" ]]; then
|
if [[ $service == "zmb-ad" ]]; then
|
||||||
## set nameserver, ${LXC_IP%/*} extracts the ip address from cidr format
|
## set nameserver, ${LXC_IP%/*} extracts the ip address from cidr format
|
||||||
pct set $LXC_NBR -nameserver ${LXC_IP%/*}
|
pct set $LXC_NBR -nameserver ${LXC_IP%/*}
|
||||||
|
elif [[ $service == "zmb-ad-join" ]]; then
|
||||||
|
pct set $LXC_NBR -nameserver "${LXC_IP%/*} $LXC_DNS"
|
||||||
fi
|
fi
|
||||||
pct start $LXC_NBR
|
pct start $LXC_NBR
|
Loading…
Add table
Add a link
Reference in a new issue