From 939ff62becced0eb3a4ef874d7e99e7c4eee0b57 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 14 Oct 2011 00:49:00 +0200 Subject: [PATCH] chrony: fixes to make it work as 'chrony' user/group. --- srcpkgs/chrony/INSTALL | 3 ++- srcpkgs/chrony/REMOVE | 3 +-- srcpkgs/chrony/files/chrony.conf | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/srcpkgs/chrony/INSTALL b/srcpkgs/chrony/INSTALL index 800ea0966c..66c5dbef4f 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 1314cd1bd4..02444c17d4 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 ef58cb6237..a9ab668b46 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