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:
tteckster 2023-03-07 12:09:28 -05:00 committed by GitHub
parent c887a6bea1
commit 0e1a3ae998
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
169 changed files with 333 additions and 82 deletions

View file

@ -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