mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
modified the code for setting the time zone
This commit is contained in:
parent
ad1d630302
commit
1f9b959a47
169 changed files with 251 additions and 169 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue