Skip to content

Commit

Permalink
Merge pull request #478 from mikopbx/develop
Browse files Browse the repository at this point in the history
Поправил установку времени при изменении настроек ntp.
  • Loading branch information
jorikfon authored Apr 18, 2023
2 parents f91ab60 + da0a84f commit 7d163e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/System/Configs/NTPConf.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static function configure(): void
if ($manual_time !== '1') {
$ntpdPath = Util::which('ntpd');
Processes::mwExec($ntpdPath);
Processes::mwExecBg("$ntpdPath -q");
}
}
}
Expand Down
1 change: 1 addition & 0 deletions src/Core/Workers/WorkerModelsEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ private function initPbxSettingsDependencyTable(): void
'settingName' => [
'PBXManualTimeSettings',
'NTPServer',
'PBXTimezone',
],
'functions' => [
self::R_NTP,
Expand Down

0 comments on commit 7d163e6

Please sign in to comment.