Force symlinking of systemd unit for activation
Makefile: Force symlinking of systemd unit for activation. If the service is already installed and activated (symlinked) on the target system, a non-forced symlink would fail otherwise.
This commit is contained in:
parent
a6f2a84baa
commit
75b7394377
2
Makefile
2
Makefile
@ -56,7 +56,7 @@ install: build wkd_sync_service
|
|||||||
install -vDm 644 build/$(WKD_SYNC_SERVICE) -t $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
|
install -vDm 644 build/$(WKD_SYNC_SERVICE) -t $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
|
||||||
install -vDm 644 wkd_sync/$(WKD_SYNC_TIMER) -t $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
|
install -vDm 644 wkd_sync/$(WKD_SYNC_TIMER) -t $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
|
||||||
install -vdm 755 $(DESTDIR)$(SYSTEMD_TIMER_DIR)
|
install -vdm 755 $(DESTDIR)$(SYSTEMD_TIMER_DIR)
|
||||||
ln -sv ../$(WKD_SYNC_TIMER) $(DESTDIR)$(SYSTEMD_TIMER_DIR)/$(WKD_SYNC_TIMER)
|
ln -fsv ../$(WKD_SYNC_TIMER) $(DESTDIR)$(SYSTEMD_TIMER_DIR)/$(WKD_SYNC_TIMER)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -fv $(DESTDIR)$(KEYRING_TARGET_DIR)/{$(KEYRING_FILE),$(KEYRING_REVOKED_FILE),$(KEYRING_TRUSTED_FILE)}
|
rm -fv $(DESTDIR)$(KEYRING_TARGET_DIR)/{$(KEYRING_FILE),$(KEYRING_REVOKED_FILE),$(KEYRING_TRUSTED_FILE)}
|
||||||
|
Loading…
Reference in New Issue
Block a user