mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 13:59:59 +00:00
devecot: set dovecot.conf file mode with chmod
The touch command doesn't support file mode setting. Set it with chmod. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -50,7 +50,8 @@ SYSTEMD_AUTO_ENABLE = "disable"
|
|||||||
do_install:append () {
|
do_install:append () {
|
||||||
rm -rf ${D}${libdir}/dovecot/dovecot-config
|
rm -rf ${D}${libdir}/dovecot/dovecot-config
|
||||||
install -d 755 ${D}/etc/dovecot
|
install -d 755 ${D}/etc/dovecot
|
||||||
touch 644 ${D}/etc/dovecot/dovecot.conf
|
touch ${D}/etc/dovecot/dovecot.conf
|
||||||
|
chmod 644 ${D}/etc/dovecot/dovecot.conf
|
||||||
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
|
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
|
||||||
install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system
|
install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system
|
||||||
sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service
|
sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service
|
||||||
|
|||||||
Reference in New Issue
Block a user