zmb-ad-join: set dns server after install

This commit is contained in:
thorstenspille 2023-02-12 15:09:17 +01:00
parent 1c74139ebd
commit 02862eb565

View File

@ -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