diff options
author | Frank Karlitschek <karlitschek@gmx.de> | 2019-03-20 00:07:54 +0300 |
---|---|---|
committer | Frank Karlitschek <karlitschek@gmx.de> | 2019-03-20 00:07:54 +0300 |
commit | 82b3cc5646fd1c1b8f38377948d382f18d033959 (patch) | |
tree | 477a1c6d3cc0171f1bb1368404cb617a0b3bbe4e /lib | |
parent | e1a95f4c72cc9f7b764034704fa1429f84a8fdac (diff) |
parse systemd timeserver config file correctly
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/OperatingSystems/DefaultOs.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/OperatingSystems/DefaultOs.php b/lib/OperatingSystems/DefaultOs.php index 11e242f..88d4fc3 100755 --- a/lib/OperatingSystems/DefaultOs.php +++ b/lib/OperatingSystems/DefaultOs.php @@ -95,7 +95,7 @@ class DefaultOs { */ public function getTimeServers() { $servers = shell_exec('cat /etc/ntp.conf |grep \'^pool\' | cut -f 2 -d " "'); - $servers.= ' '.shell_exec('cat /etc/systemd/timesyncd.conf |grep \'^pool\' | cut -f 2 -d " "'); + $servers.= ' '.shell_exec('cat /etc/systemd/timesyncd.conf |grep \'^NTP=\' | cut -f 2 -d " "'); return $servers; } |