From 79d86e0cb94d77f3698fe26ff1b798e45d9f71d1 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Wed, 17 Oct 2018 18:18:33 +1100 Subject: [PATCH] Update Makefile - replace 'cp -raf' with 'install -D -m 644' (#202) * Update makefile - remove 'cp -raf' & chmod and replace with 'install -D -m 644' for service file installation --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0cd94bc6..b2334644 100644 --- a/Makefile +++ b/Makefile @@ -38,19 +38,16 @@ ifeq ($(RHEL),1) mkdir -p $(DESTDIR)/usr/lib/systemd/system/ chown root.root $(DESTDIR)/usr/lib/systemd/system/ chmod 0755 $(DESTDIR)/usr/lib/systemd/system/ - cp -raf *.service $(DESTDIR)/usr/lib/systemd/system/ - chmod 0644 $(DESTDIR)/usr/lib/systemd/system/onedrive*.service + install -D -m 644 *.service $(DESTDIR)/usr/lib/systemd/system/ else mkdir -p $(DESTDIR)/usr/lib/systemd/user/ chown root.root $(DESTDIR)/usr/lib/systemd/user/ chmod 0755 $(DESTDIR)/usr/lib/systemd/user/ - cp -raf onedrive.service $(DESTDIR)/usr/lib/systemd/user/ - chmod 0644 $(DESTDIR)/usr/lib/systemd/user/onedrive.service + install -D -m 644 onedrive.service $(DESTDIR)/usr/lib/systemd/user/ mkdir -p $(DESTDIR)/usr/lib/systemd/system/ chown root.root $(DESTDIR)/usr/lib/systemd/system/ chmod 0755 $(DESTDIR)/usr/lib/systemd/system/ - cp -raf onedrive@.service $(DESTDIR)/usr/lib/systemd/system/ - chmod 0644 $(DESTDIR)/usr/lib/systemd/system/onedrive@.service + install -D -m 644 onedrive@.service $(DESTDIR)/usr/lib/systemd/system/ endif onedrive: version $(SOURCES)