mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-16 10:57:38 +00:00
modified the code for setting the time zone
This commit is contained in:
@ -47,7 +47,8 @@ function msg_error() {
|
||||
msg_info "Setting up Container OS "
|
||||
sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen
|
||||
locale-gen >/dev/null
|
||||
timedatectl set-timezone $tz
|
||||
echo $tz > /etc/timezone
|
||||
ln -sf /usr/share/zoneinfo/$tz /etc/localtime
|
||||
for ((i=RETRY_NUM; i>0; i--)); do
|
||||
if [ "$(hostname -I)" != "" ]; then
|
||||
break
|
||||
|
Reference in New Issue
Block a user