[*] 兼容action测试
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 5m59s

This commit is contained in:
2025-01-05 23:45:23 +08:00
parent 33b6b3013a
commit 1d36cdba41
3 changed files with 14 additions and 4 deletions

View File

@@ -38,4 +38,8 @@ server ntp5.aliyun.com iburst
driftfile /var/lib/chrony/drift
allow 127.0.0.1
EOF
systemctl restart chrony && systemctl enable chrony
if command -v systemctl >/dev/null 2>&1; then
systemctl restart chrony && systemctl enable chrony
else
echo "systemctl 不存在,跳过 chrony 的重启"
fi