Makefile: install alias, not symlink

ln -s errors out with file exists if you run make install.systemd twice
or more. This patch installs the alias directly w/o using a symlink so
it can be run multiple times w/o errors.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-08-27 16:01:50 +02:00
parent e5ec48b686
commit d26ad19327
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -152,8 +152,8 @@ install.completions:
install.systemd:
install -D -m 644 contrib/systemd/crio.service $(PREFIX)/lib/systemd/system/crio.service
install -D -m 644 contrib/systemd/crio.service $(PREFIX)/lib/systemd/system/cri-o.service
install -D -m 644 contrib/systemd/crio-shutdown.service $(PREFIX)/lib/systemd/system/crio-shutdown.service
ln -s crio.service $(PREFIX)/lib/systemd/system/cri-o.service
uninstall:
rm -f $(BINDIR)/crio