mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 00:02:26 +01:00 
			
		
		
		
	set LXC_HOSTNAME to service name
set lxc_locale german
This commit is contained in:
		@@ -34,7 +34,7 @@ LXC_MEM="1024"
 | 
				
			|||||||
LXC_SWAP="1024"
 | 
					LXC_SWAP="1024"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Defines the hostname of your LXC container
 | 
					# Defines the hostname of your LXC container
 | 
				
			||||||
LXC_HOSTNAME="${service}.zmbrocks"
 | 
					LXC_HOSTNAME="${service}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Defines the domain name / search domain of your LXC container
 | 
					# Defines the domain name / search domain of your LXC container
 | 
				
			||||||
LXC_DOMAIN="zmb.rocks"
 | 
					LXC_DOMAIN="zmb.rocks"
 | 
				
			||||||
@@ -74,7 +74,9 @@ LXC_TIMEZONE="Europe/Berlin"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Define system language on LXC container (locales)
 | 
					# Define system language on LXC container (locales)
 | 
				
			||||||
# With this paramater you can generate additional locales, the default language will be inherited from proxmox host.
 | 
					# With this paramater you can generate additional locales, the default language will be inherited from proxmox host.
 | 
				
			||||||
LXC_LOCALE="en_US.UTF-8"
 | 
					# en_US.UTF-8  english
 | 
				
			||||||
 | 
					# de_DE.UTF-8  german (default)
 | 
				
			||||||
 | 
					LXC_LOCALE="de_DE.UTF-8"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Set dark background for vim syntax highlighting (0 or 1)
 | 
					# Set dark background for vim syntax highlighting (0 or 1)
 | 
				
			||||||
LXC_VIM_BG_DARK=1
 | 
					LXC_VIM_BG_DARK=1
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -152,7 +152,7 @@ if [[ $LXC_VLAN != "" ]];then VLAN=",tag=$LXC_VLAN"; else VLAN=""; fi
 | 
				
			|||||||
PVE_VER=$(pveversion | grep 'pve-manager' | cut -d'/' -f2 | sed 's/[^0-9]//g')
 | 
					PVE_VER=$(pveversion | grep 'pve-manager' | cut -d'/' -f2 | sed 's/[^0-9]//g')
 | 
				
			||||||
pct set $LXC_NBR -memory $LXC_MEM -swap $LXC_SWAP -hostname $LXC_HOSTNAME -onboot 1 -features nesting=$LXC_NESTING;
 | 
					pct set $LXC_NBR -memory $LXC_MEM -swap $LXC_SWAP -hostname $LXC_HOSTNAME -onboot 1 -features nesting=$LXC_NESTING;
 | 
				
			||||||
# timezone switch added in Version 6.3
 | 
					# timezone switch added in Version 6.3
 | 
				
			||||||
if [ $PVE_VER -gt 630 ];then pct set $LXC_NBR -timezone $LXC_TIMEZONE;fi
 | 
					if [ $PVE_VER -ge 630 ];then pct set $LXC_NBR -timezone $LXC_TIMEZONE;fi
 | 
				
			||||||
if [ $LXC_DHCP == true ]; then
 | 
					if [ $LXC_DHCP == true ]; then
 | 
				
			||||||
 pct set $LXC_NBR -net0 name=eth0,bridge=$LXC_BRIDGE,ip=dhcp,type=veth$VLAN;
 | 
					 pct set $LXC_NBR -net0 name=eth0,bridge=$LXC_BRIDGE,ip=dhcp,type=veth$VLAN;
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user