mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 00:02:26 +01:00 
			
		
		
		
	Install cifs-utils + rsync, add optional features
This commit is contained in:
		@@ -19,6 +19,16 @@ LXC_UNPRIVILEGED="0"
 | 
			
		||||
# enable nesting feature
 | 
			
		||||
LXC_NESTING="1"
 | 
			
		||||
 | 
			
		||||
# add optional features to samba ad dc
 | 
			
		||||
 | 
			
		||||
# CURRENTLY SUPPORTED:
 | 
			
		||||
# wsdd = add windows service discovery
 | 
			
		||||
# splitdns = add nginx to redirect to website www.domain.tld in splitdns setup
 | 
			
		||||
# bind9dlz = Set ZMB_DNS_BACKEND to BIND9_DLZ
 | 
			
		||||
 | 
			
		||||
# Example:
 | 
			
		||||
# OPTIONAL_FEATURES=(wsdd)
 | 
			
		||||
# OPTIONAL_FEATURES=(wsdd splitdns)
 | 
			
		||||
OPTIONAL_FEATURES=(wsdd splitdns)
 | 
			
		||||
 | 
			
		||||
# service dependent meta tags
 | 
			
		||||
 
 | 
			
		||||
@@ -60,8 +60,7 @@ apt update
 | 
			
		||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq dist-upgrade
 | 
			
		||||
# install required packages
 | 
			
		||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" $LXC_TOOLSET $ADDITIONAL_PACKAGES ntpdate rpl net-tools dnsutils ntp
 | 
			
		||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" -t $(lsb_release -cs)-backports acl attr samba smbclient winbind libpam-winbind libnss-winbind krb5-user samba-dsdb-modules samba-vfs-modules lmdb-utils
 | 
			
		||||
 | 
			
		||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold" -t $(lsb_release -cs)-backports acl attr samba smbclient winbind libpam-winbind libnss-winbind krb5-user samba-dsdb-modules samba-vfs-modules lmdb-utils rsync cifs-utils
 | 
			
		||||
if [[ "$ADDITIONAL_PACKAGES" == *"nginx-full"* ]]; then
 | 
			
		||||
	  cat << EOF > /etc/nginx/sites-available/default
 | 
			
		||||
server {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user