[*] 修改时区
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 44s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 44s
This commit is contained in:
@@ -28,6 +28,7 @@ server ntp5.aliyun.com iburst
|
||||
driftfile /var/lib/chrony/drift
|
||||
allow 127.0.0.1
|
||||
EOF
|
||||
timedatectl set-timezone Asia/Shanghai
|
||||
systemctl restart chrony && systemctl enable chrony
|
||||
else
|
||||
echo "systemctl 不存在,跳过 chrony 的重启"
|
||||
|
||||
Reference in New Issue
Block a user