Skip to content

Commit c3bc30b

Browse files
ddstreetchristopherco
authored andcommitted
feat: add confdir of /etc/chrony.d/ to chrony.conf
Using a confdir by default allows the use of drop-in conf files for chrony.
1 parent a9fec89 commit c3bc30b

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

base/comps/chrony/chrony.comp.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[components.chrony]
2+
3+
[[components.chrony.overlays]]
4+
description = "Enable use of confdir at /etc/chrony.d"
5+
type = "spec-search-replace"
6+
regex = "^touch -r examples/chrony.conf.example2 chrony.conf"
7+
replacement = "echo -e '\\n# Use confdir\\nconfdir /etc/chrony.d' >> chrony.conf\n\ntouch -r examples/chrony.conf.example2 chrony.conf"
8+
9+
[[components.chrony.overlays]]
10+
description = "Create /etc/chrony.d dir"
11+
type = "spec-search-replace"
12+
regex = '\$RPM_BUILD_ROOT%\{_sysconfdir\}/\{sysconfig,logrotate.d\}'
13+
replacement = '$RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,logrotate.d,chrony.d}'
14+
15+
[[components.chrony.overlays]]
16+
description = "Add /etc/chrony.d dir to package"
17+
type = "spec-append-lines"
18+
section = "%files"
19+
lines = ["%dir %{_sysconfdir}/chrony.d"]

base/comps/components.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ includes = ["**/*.comp.toml", "component-check-disablement.toml"]
240240
[components.chkrootkit]
241241
[components.chromaprint]
242242
[components.chromium]
243-
[components.chrony]
244243
[components.chrpath]
245244
[components.cifs-utils]
246245
[components.cim-schema]

0 commit comments

Comments
 (0)