mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
Makefile: install to /usr/local/sbin
Since runC requires root in order to run, it makes more sense to put it in /usr/local/sbin (which is traditionally for root-only utilities). This also fixes the section number mismatch (man8 is usually for administrative utilities in /usr/local/sbin). Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
@@ -37,17 +37,17 @@ test: runctestimage
|
||||
localtest: all
|
||||
go test -tags "$(BUILDTAGS)" ${TESTFLAGS} -v ./...
|
||||
|
||||
dbuild: runctestimage
|
||||
dbuild: runctestimage
|
||||
docker build -t $(RUNC_IMAGE) .
|
||||
docker create --name=$(RUNC_INSTANCE) $(RUNC_IMAGE)
|
||||
docker cp $(RUNC_INSTANCE):$(RUNC_BUILD_PATH) .
|
||||
docker rm $(RUNC_INSTANCE)
|
||||
|
||||
install:
|
||||
cp runc /usr/local/bin/runc
|
||||
install -D -m0755 runc /usr/local/sbin/runc
|
||||
|
||||
uninstall:
|
||||
rm -f /usr/local/bin/runc
|
||||
rm -f /usr/local/sbin/runc
|
||||
|
||||
clean:
|
||||
rm -f runc
|
||||
|
||||
Reference in New Issue
Block a user