mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: manage_ntp_configuration not effective (#14426)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -491,9 +491,12 @@ func (h *SHostInfo) checkSystemServices() error {
|
||||
srvinst.Start(false)
|
||||
}
|
||||
}
|
||||
for _, srv := range []string{"ntpd"} {
|
||||
srvinst := system_service.GetService(srv)
|
||||
funcEn(srv, srvinst)
|
||||
|
||||
if options.HostOptions.ManageNtpConfiguration {
|
||||
for _, srv := range []string{"ntpd"} {
|
||||
srvinst := system_service.GetService(srv)
|
||||
funcEn(srv, srvinst)
|
||||
}
|
||||
}
|
||||
|
||||
svcs := os.Getenv("HOST_SYSTEM_SERVICES_OFF")
|
||||
|
||||
Reference in New Issue
Block a user