diff mbox series

[meta-networking,1/2] squid: install systemd unit without executable bit

Message ID 20261026174245.1478726-1-patrick.wicki@subset.ch
State Accepted
Headers show
Series [meta-networking,1/2] squid: install systemd unit without executable bit | expand

Commit Message

Patrick Wicki Oct. 26, 2026, 5:42 p.m. UTC
From: Patrick Wicki <patrick.wicki@siemens.com>

install defaults to mode 0755, which makes systemd complain:

  Configuration file /usr/lib/systemd/system/squid.service is marked
  executable. Please remove executable permission bits. Proceeding anyway.

Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com>
---
 meta-networking/recipes-daemons/squid/squid_7.7.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-networking/recipes-daemons/squid/squid_7.7.bb b/meta-networking/recipes-daemons/squid/squid_7.7.bb
index b657197fd7..bda8f124cb 100644
--- a/meta-networking/recipes-daemons/squid/squid_7.7.bb
+++ b/meta-networking/recipes-daemons/squid/squid_7.7.bb
@@ -117,7 +117,7 @@  do_install:append() {
     if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
         # Install service unit file
         install -d ${D}/${systemd_unitdir}/system
-        install ${S}/tools/systemd/squid.service ${D}/${systemd_unitdir}/system
+        install -m 0644 ${S}/tools/systemd/squid.service ${D}/${systemd_unitdir}/system
         sed -i 's:/var/run/:/run/:g' ${D}/${systemd_unitdir}/system/squid.service
 
         # Configure tmpfiles.d