2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

fix: 修复debian下cron不生效

This commit is contained in:
耗子
2024-07-28 15:53:57 +08:00
parent 0e715a7576
commit bbc6e3c7cc
3 changed files with 20 additions and 26 deletions

View File

@@ -15,3 +15,9 @@ func IsRHEL() bool {
_, err := os.Stat("/etc/redhat-release")
return err == nil
}
// IsUbuntu 判断是否是 Ubuntu 系统
func IsUbuntu() bool {
_, err := os.Stat("/etc/lsb-release")
return err == nil
}