summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2022-07-07 20:57:05 +0200
committerGitHub <noreply@github.com>2022-07-07 11:57:05 -0700
commitc2e4320dd5f605924082da1d9b33326c805a431e (patch)
tree086135f82bca2a1bc63b1fa8689bb788e1211d43
parent72b3dd66a24381df9b7863537d3b60ce13300a6a (diff)
downloadopen-iscsi-c2e4320dd5f605924082da1d9b33326c805a431e.tar.gz
etc: install system unit with without executable bit (#354)
All systemd unit files are expected to be not executable, so install with correct permissions.
-rw-r--r--etc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 6a03c32..c47c180 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -81,10 +81,10 @@ install_systemd_service_files: $(DESTDIR)$(systemddir)/system $(SYSTEMD_DEST_SVC
install_systemd_generator_files: $(DESTDIR)$(systemddir)/system-generators $(SYSTEMD_DEST_GEN_FILES)
$(SYSTEMD_DEST_SVC_FILES): $(DESTDIR)$(systemddir)/system/%: systemd/%
- $(INSTALL) $? $@
+ $(INSTALL) -m 644 $? $@
$(SYSTEMD_DEST_GEN_FILES): $(DESTDIR)$(systemddir)/system-generators/%: systemd/%
- $(INSTALL) $? $@
+ $(INSTALL) -m 755 $? $@
install_iname: $(DESTDIR)$(HOMEDIR) $(ISCSI_INAME)
if [ ! -f $(INAME_DEST_FILE) ]; then \