summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-06-02 13:16:34 +0200
committerThomas Haller <thaller@redhat.com>2014-06-02 16:05:46 +0200
commit16d34bfe82605e30f068c775671ae1dd0f178eeb (patch)
tree51084e8c649fcbb9566a463dc3a110a4b801c19d /data
parent070e19dc3181502e4aa88cfd13ced8622838cbd4 (diff)
downloadNetworkManager-16d34bfe82605e30f068c775671ae1dd0f178eeb.tar.gz
build: fix installing network-online.target for existing link
When reinstalling NM on the same location, it would fail with Making install in data make[1]: Entering directory `/home/data/src/NetworkManager/data' make[2]: Entering directory `/home/data/src/NetworkManager/data' install -d /opt/test/lib/systemd/system/network-online.target.wants ln -s /opt/test/lib/systemd/system/NetworkManager-wait-online.service /opt/test/lib/systemd/system/network-online.target.wants ln: failed to create symbolic link ‘/opt/test/lib/systemd/system/network-online.target.wants/NetworkManager-wait-online.service’: File exists make[2]: *** [install-exec-local] Error 1 https://bugzilla.gnome.org/show_bug.cgi?id=728965 Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 709dfe2076..e91361a71b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -28,7 +28,7 @@ $(service_DATA): $(service_in_files) Makefile
install-exec-local:
install -d $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
- ln -s $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
+ ln -sf $(systemdsystemunitdir)/NetworkManager-wait-online.service $(DESTDIR)$(systemdsystemunitdir)/network-online.target.wants
endif
examplesdir = $(docdir)/examples