diff options
author | John Klug <john.klug@multitech.com> | 2016-12-21 08:46:44 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2016-12-21 08:46:44 -0600 |
commit | 2ba73a35c4907336858320b31ce515a6aa10698f (patch) | |
tree | a30a91014f8b5014970f1138bb2894d46124567b /recipes-support/ntp/ntp_4.2.6p5.bbappend | |
parent | 179371d9381f86c0d68e0c981ef3fc5dce830aaa (diff) | |
download | meta-mlinux-2ba73a35c4907336858320b31ce515a6aa10698f.tar.gz meta-mlinux-2ba73a35c4907336858320b31ce515a6aa10698f.tar.bz2 meta-mlinux-2ba73a35c4907336858320b31ce515a6aa10698f.zip |
ntp.drift must be in a directory writable by ntp
Diffstat (limited to 'recipes-support/ntp/ntp_4.2.6p5.bbappend')
-rw-r--r-- | recipes-support/ntp/ntp_4.2.6p5.bbappend | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/recipes-support/ntp/ntp_4.2.6p5.bbappend b/recipes-support/ntp/ntp_4.2.6p5.bbappend index 9c6419e..4651611 100644 --- a/recipes-support/ntp/ntp_4.2.6p5.bbappend +++ b/recipes-support/ntp/ntp_4.2.6p5.bbappend @@ -9,14 +9,18 @@ python do_patch_prepend () { import os } pkg_postinst_${PN} () { - touch /etc/ntp.drift - chown ntp:ntp /etc/ntp.drift - chmod 664 /etc/ntp.drift if ! [[ -d /var/log/ntpstats ]] ; then mkdir -p /var/log/ntpstats fi - chown ntp:ntp /var/log/ntpstats chmod 775 /var/log/ntpstats + + if ! [[ -d /var/lib/ntp ]] ; then + mkdir -p /var/lib/ntp + fi + drfile="/var/lib/ntp/ntp.drift" + touch ${drfile} + chown ntp:ntp ${drfile} + chmod 664 ${drfile} } |