mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-12-25 03:30:12 +01:00
Integrated zmb-ad prototype
This commit is contained in:
parent
4a1c4c7870
commit
7f33e59e5d
@ -78,6 +78,8 @@ select opt in just_lxc zmb-standalone zmb-member zmb-ad mailpiler matrix quit; d
|
|||||||
;;
|
;;
|
||||||
zmb-ad)
|
zmb-ad)
|
||||||
echo "Selected Zamba AD DC"
|
echo "Selected Zamba AD DC"
|
||||||
|
# Enable nesting for ntp service
|
||||||
|
pct set $LXC_NBR -features nesting=1
|
||||||
# TODO: write script for Zamba AD DC
|
# TODO: write script for Zamba AD DC
|
||||||
echo "This function is not implemented yet! Exiting..."
|
echo "This function is not implemented yet! Exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
@ -116,3 +118,9 @@ pct push $LXC_NBR ./zamba.conf /root/zamba.conf
|
|||||||
pct push $LXC_NBR ./$opt.sh /root/$opt.sh
|
pct push $LXC_NBR ./$opt.sh /root/$opt.sh
|
||||||
echo "Install '$opt'!"
|
echo "Install '$opt'!"
|
||||||
lxc-attach -n$LXC_NBR bash /root/$opt.sh
|
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
|
Loading…
Reference in New Issue
Block a user