summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-01-03 17:00:16 -0600
committerJohn Klug <john.klug@multitech.com>2017-01-03 17:00:16 -0600
commiteeb5a8f02b8a9a839c09c37ad53a01dabee098ea (patch)
tree81a5317322fdaffe770063d1508c0f56369aeb42
parentbacb2782a25cbb3c1852e0814fa5cd1ac0f2adae (diff)
parent0f6b23997881f6e683f425cb8529434248a50577 (diff)
downloadmeta-mlinux-eeb5a8f02b8a9a839c09c37ad53a01dabee098ea.tar.gz
meta-mlinux-eeb5a8f02b8a9a839c09c37ad53a01dabee098ea.tar.bz2
meta-mlinux-eeb5a8f02b8a9a839c09c37ad53a01dabee098ea.zip
Merge branch 'master' of gitlab.multitech.net:mirrors/meta-mlinux
-rw-r--r--recipes-support/ntp/ntp_4.2.6p5.bbappend18
1 files changed, 10 insertions, 8 deletions
diff --git a/recipes-support/ntp/ntp_4.2.6p5.bbappend b/recipes-support/ntp/ntp_4.2.6p5.bbappend
index 4651611..7928608 100644
--- a/recipes-support/ntp/ntp_4.2.6p5.bbappend
+++ b/recipes-support/ntp/ntp_4.2.6p5.bbappend
@@ -9,18 +9,20 @@ python do_patch_prepend () {
import os
}
pkg_postinst_${PN} () {
- if ! [[ -d /var/log/ntpstats ]] ; then
- mkdir -p /var/log/ntpstats
+ sdir=/var/log/ntpstats
+ if ! [[ -d ${sdir} ]] ; then
+ mkdir -p ${sdir}
fi
- chown ntp:ntp /var/log/ntpstats
- chmod 775 /var/log/ntpstats
+ chown ntp:ntp ${sdir}
+ chmod 775 ${sdir}
- if ! [[ -d /var/lib/ntp ]] ; then
- mkdir -p /var/lib/ntp
+ drdir=/var/lib/ntp
+ if ! [[ -d ${drdir} ]] ; then
+ mkdir -p ${drdir}
fi
- drfile="/var/lib/ntp/ntp.drift"
+ drfile="${drdir}/ntp.drift"
touch ${drfile}
- chown ntp:ntp ${drfile}
chmod 664 ${drfile}
+ chown -R ntp:ntp ${drdir}
}