$LXC_TIMEZONE instead of fixed Europe/Berlin

pct set ... change to use variable $LXC_TIMEZONE instead of fixed "Europe/Berlin".

P.S.: Is timezone parameter required when creating an LXC container or can it be left out entirely?
This commit is contained in:
Holger Pannenbäcker 2021-04-20 18:52:26 +02:00 committed by GitHub
parent 8c605510a4
commit fbb4d506f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ else
VLAN=""
fi
# Reconfigure conatiner
pct set $LXC_NBR -memory $LXC_MEM -swap $LXC_SWAP -hostname $LXC_HOSTNAME \-nameserver $LXC_DNS -searchdomain $LXC_DOMAIN -onboot 1 -timezone Europe/Berlin -net0 name=eth0,bridge=$LXC_BRIDGE,firewall=1,gw=$LXC_GW,ip=$LXC_IP,type=veth$VLAN;
pct set $LXC_NBR -memory $LXC_MEM -swap $LXC_SWAP -hostname $LXC_HOSTNAME \-nameserver $LXC_DNS -searchdomain $LXC_DOMAIN -onboot 1 -timezone $LXC_TIMEZONE -net0 name=eth0,bridge=$LXC_BRIDGE,firewall=1,gw=$LXC_GW,ip=$LXC_IP,type=veth$VLAN;
sleep 2;
PS3="Select the Server-Function: "