Add (likely ugly) init script for openrc
This commit is contained in:
parent
a7bcf34432
commit
11256b5edf
2 changed files with 24 additions and 3 deletions
10
Makefile
10
Makefile
|
|
@ -3,6 +3,10 @@ PREFIX?=/usr/local
|
|||
all: install
|
||||
|
||||
install:
|
||||
install -m 755 --owner root bin/uncloud-init $(PREFIX)/bin/uncloud-init
|
||||
install -m 755 --owner root bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart
|
||||
install -m 644 --owner root uncloud-init.service /etc/systemd/system/uncloud-init.service
|
||||
install -m 755 bin/uncloud-init $(PREFIX)/bin/uncloud-init
|
||||
install -m 755 bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart
|
||||
if command -v systemd; then \
|
||||
install -m 644 uncloud-init.service /etc/systemd/system/uncloud-init.service; \
|
||||
else \
|
||||
install -m 755 uncloud-init.rc /etc/init.d/uncloud-init; \
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue