Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrank Karlitschek <karlitschek@gmx.de>2019-03-20 00:07:54 +0300
committerFrank Karlitschek <karlitschek@gmx.de>2019-03-20 00:07:54 +0300
commit82b3cc5646fd1c1b8f38377948d382f18d033959 (patch)
tree477a1c6d3cc0171f1bb1368404cb617a0b3bbe4e /lib
parente1a95f4c72cc9f7b764034704fa1429f84a8fdac (diff)
parse systemd timeserver config file correctly
Diffstat (limited to 'lib')
-rwxr-xr-xlib/OperatingSystems/DefaultOs.php2
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;
}