mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-02 14:12:52 +02:00
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:
parent
1c23d01007
commit
79d86e0cb9
9
Makefile
9
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)
|
||||
|
|
Loading…
Reference in a new issue