Use systemctl binary presence to decide which init configuration to deploy
This commit is contained in:
parent
11256b5edf
commit
30fcf79d69
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -5,7 +5,7 @@ all: install
|
||||||
install:
|
install:
|
||||||
install -m 755 bin/uncloud-init $(PREFIX)/bin/uncloud-init
|
install -m 755 bin/uncloud-init $(PREFIX)/bin/uncloud-init
|
||||||
install -m 755 bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart
|
install -m 755 bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart
|
||||||
if command -v systemd; then \
|
if command -v systemctl; then \
|
||||||
install -m 644 uncloud-init.service /etc/systemd/system/uncloud-init.service; \
|
install -m 644 uncloud-init.service /etc/systemd/system/uncloud-init.service; \
|
||||||
else \
|
else \
|
||||||
install -m 755 uncloud-init.rc /etc/init.d/uncloud-init; \
|
install -m 755 uncloud-init.rc /etc/init.d/uncloud-init; \
|
||||||
|
|
Loading…
Reference in a new issue