mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
set time zone (#1131)
Retrieve the time zone from Proxmox and configure the container to use the same time zone
This commit is contained in:
parent
c887a6bea1
commit
0e1a3ae998
169 changed files with 333 additions and 82 deletions
|
@ -47,6 +47,7 @@ function msg_error() {
|
|||
msg_info "Setting up Container OS "
|
||||
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
|
||||
locale-gen >/dev/null
|
||||
timedatectl set-timezone $tz
|
||||
for ((i=RETRY_NUM; i>0; i--)); do
|
||||
if [ "$(hostname -I)" != "" ]; then
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue