mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-08 08:52:15 +02:00
Fix systemd service install for builds with DESTDIR defined (#68)
This commit is contained in:
parent
4678056792
commit
370ad9c6d2
5
Makefile
5
Makefile
|
@ -27,7 +27,10 @@ install: all
|
||||||
chmod 0775 $(DESTDIR)/var/log/onedrive
|
chmod 0775 $(DESTDIR)/var/log/onedrive
|
||||||
install -D onedrive $(DESTDIR)$(PREFIX)/bin/onedrive
|
install -D onedrive $(DESTDIR)$(PREFIX)/bin/onedrive
|
||||||
install -D -m 644 logrotate/onedrive.logrotate $(DESTDIR)/etc/logrotate.d/onedrive
|
install -D -m 644 logrotate/onedrive.logrotate $(DESTDIR)/etc/logrotate.d/onedrive
|
||||||
cp -af *.service $(DESTDIR)/usr/lib/systemd/user/
|
mkdir -p $(DESTDIR)/usr/lib/systemd/user/
|
||||||
|
chown root.root $(DESTDIR)/usr/lib/systemd/user/
|
||||||
|
chmod 0755 $(DESTDIR)/usr/lib/systemd/user/
|
||||||
|
cp -raf *.service $(DESTDIR)/usr/lib/systemd/user/
|
||||||
chmod 0644 $(DESTDIR)/usr/lib/systemd/user/onedrive*.service
|
chmod 0644 $(DESTDIR)/usr/lib/systemd/user/onedrive*.service
|
||||||
|
|
||||||
onedrive: version $(SOURCES)
|
onedrive: version $(SOURCES)
|
||||||
|
|
Loading…
Reference in a new issue