chrony: fixes to make it work as 'chrony' user/group.
This commit is contained in:
parent
43c1e78ae2
commit
939ff62bec
3 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
||||||
case ${ACTION} in
|
case ${ACTION} in
|
||||||
post)
|
post)
|
||||||
[ ! -d var/log/chrony ] && mkdir -p var/log/chrony
|
[ ! -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
|
esac
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
case ${ACTION} in
|
case ${ACTION} in
|
||||||
purge)
|
purge)
|
||||||
[ -d var/log/chrony ] && rm -rf var/log/chrony
|
[ -d var/log/chrony ] && rm -rf var/log/chrony
|
||||||
[ -f etc/chrony.conf ] && rm -f etc/chrony.conf
|
[ -d var/db/chrony ] && rm -rf var/db/chrony
|
||||||
[ -f etc/chrony.drift ] && rm -f etc/chrony.drift
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -89,7 +89,7 @@ maxupdateskew 5
|
||||||
# immediately so that it doesn't gain or lose any more time. You
|
# immediately so that it doesn't gain or lose any more time. You
|
||||||
# generally want this, so it is uncommented.
|
# 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
|
# 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
|
# 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
|
# exchanges between cooperating machines.) Again, this option is
|
||||||
# assumed by default.
|
# 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
|
# 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
|
# 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
|
# You need to have 'enhanced RTC support' compiled into your Linux
|
||||||
# kernel. (Note, these options apply only to 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
|
# 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
|
# time. (Local time means UTC +/- the effect of your timezone.) If you
|
||||||
|
|
Loading…
Reference in a new issue