From 7f33e59e5da395a7e71d9aa24370db94250f9697 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Mon, 12 Apr 2021 01:49:10 +0200 Subject: [PATCH] Integrated zmb-ad prototype --- install.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4c6c0e2..3993236 100644 --- a/install.sh +++ b/install.sh @@ -78,6 +78,8 @@ select opt in just_lxc zmb-standalone zmb-member zmb-ad mailpiler matrix quit; d ;; zmb-ad) echo "Selected Zamba AD DC" + # Enable nesting for ntp service + pct set $LXC_NBR -features nesting=1 # TODO: write script for Zamba AD DC echo "This function is not implemented yet! Exiting..." exit 1 @@ -115,4 +117,10 @@ echo -e "$LXC_AUTHORIZED_KEY" | lxc-attach -n$LXC_NBR tee /root/.ssh/authorized_ pct push $LXC_NBR ./zamba.conf /root/zamba.conf pct push $LXC_NBR ./$opt.sh /root/$opt.sh echo "Install '$opt'!" -lxc-attach -n$LXC_NBR bash /root/$opt.sh \ No newline at end of file +lxc-attach -n$LXC_NBR bash /root/$opt.sh + +if [[ $opt == "zmb-ad" ]]; then + pct stop $LXC_NBR + pct set $LXC_NBR \-nameserver $(echo $LXC_IP | cut -d'/' -f 1) + pct start $LXC_NBR +fi \ No newline at end of file