chrony: fixes to make it work as 'chrony' user/group.
This commit is contained in:
parent
43c1e78ae2
commit
939ff62bec
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user