build: fix installing network-online.target for existing link
authorThomas Haller <thaller@redhat.com>
Mon, 2 Jun 2014 11:16:34 +0000 (13:16 +0200)
committerThomas Haller <thaller@redhat.com>
Mon, 2 Jun 2014 14:05:46 +0000 (16:05 +0200)
commit16d34bfe82605e30f068c775671ae1dd0f178eeb
tree51084e8c649fcbb9566a463dc3a110a4b801c19d
parent070e19dc3181502e4aa88cfd13ced8622838cbd4
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>
data/Makefile.am