[*] 修改时区
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 44s

This commit is contained in:
2025-01-26 11:20:10 +08:00
parent 2f9c5b5faf
commit b9e4ed3065
3 changed files with 75 additions and 3 deletions

View File

@@ -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 的重启"