diff --git a/srcpkgs/chrony/INSTALL b/srcpkgs/chrony/INSTALL index 800ea0966cc..66c5dbef4f5 100644 --- a/srcpkgs/chrony/INSTALL +++ b/srcpkgs/chrony/INSTALL @@ -1,6 +1,7 @@ case ${ACTION} in post) [ ! -d var/log/chrony ] && mkdir -p var/log/chrony - chown chrony:chrony var/log/chrony + [ ! -d var/db/chrony ] && mkdir -p var/db/chrony + chown chrony:chrony var/log/chrony var/db/chrony ;; esac diff --git a/srcpkgs/chrony/REMOVE b/srcpkgs/chrony/REMOVE index 1314cd1bd47..02444c17d4f 100644 --- a/srcpkgs/chrony/REMOVE +++ b/srcpkgs/chrony/REMOVE @@ -1,7 +1,6 @@ case ${ACTION} in purge) [ -d var/log/chrony ] && rm -rf var/log/chrony - [ -f etc/chrony.conf ] && rm -f etc/chrony.conf - [ -f etc/chrony.drift ] && rm -f etc/chrony.drift + [ -d var/db/chrony ] && rm -rf var/db/chrony ;; esac diff --git a/srcpkgs/chrony/files/chrony.conf b/srcpkgs/chrony/files/chrony.conf index ef58cb6237b..a9ab668b460 100644 --- a/srcpkgs/chrony/files/chrony.conf +++ b/srcpkgs/chrony/files/chrony.conf @@ -89,7 +89,7 @@ maxupdateskew 5 # immediately so that it doesn't gain or lose any more time. You # generally want this, so it is uncommented. -driftfile /etc/chrony.drift +driftfile /var/db/chrony/drift # If you want to use the program called chronyc to configure aspects of # chronyd's operation once it is running (e.g. tell it the Internet link @@ -98,7 +98,7 @@ driftfile /etc/chrony.drift # exchanges between cooperating machines.) Again, this option is # assumed by default. -keyfile /etc/chrony.keys +keyfile /var/db/chrony/keys # Tell chronyd which numbered key in the file is used as the password # for chronyc. (You can pick any integer up to 2**32-1. '1' is just a @@ -273,7 +273,7 @@ cmdallow 127.0.0.1 # You need to have 'enhanced RTC support' compiled into your Linux # kernel. (Note, these options apply only to Linux.) -rtcfile /etc/chrony.rtc +rtcfile /var/db/chrony/rtc # Your RTC can be set to keep Universal Coordinated Time (UTC) or local # time. (Local time means UTC +/- the effect of your timezone.) If you