Skip to contentSkip to conversation

devecot: set dovecot.conf file mode with chmod

PATCH New Yi Zhao 1 participant 1 message Jun 28, 2024

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 devecot: set dovecot.conf file mode with chmod

The touch command doesn't support file mode setting. Set it with chmod.

---
 meta-networking/recipes-support/dovecot/dovecot_2.3.21.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-networking/recipes-support/dovecot/dovecot_2.3.21.bb +2 -1
index 2f887e601..4e76d2452 100644
@@ -50,7 +50,8 @@ SYSTEMD_AUTO_ENABLE = "disable"
 do_install:append () {
     rm -rf ${D}${libdir}/dovecot/dovecot-config
     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
         install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system
         sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service
Signature · 1 line
2.25.1