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
This commit is contained in:
abraunegg 2018-10-17 18:18:33 +11:00 committed by GitHub
parent 1c23d01007
commit 79d86e0cb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)