为 Docker 容器添加 kvmd 系列管理命令

This commit is contained in:
mofeng-git 2024-11-21 02:52:36 +00:00
parent eec64ef57c
commit 506d8a4a64
7 changed files with 19 additions and 1 deletions

View File

@ -35,7 +35,7 @@ RUN if [ ${TARGETARCH} = arm ]; then ARCH=armhf; elif [ ${TARGETARCH} = arm64 ];
&& touch /run/kvmd/ustreamer.sock && touch /run/kvmd/ustreamer.sock
COPY testenv/fakes/vcgencmd /usr/bin/ COPY testenv/fakes/vcgencmd scripts/kvmd* /usr/bin/
COPY extras/ /usr/share/kvmd/extras/ COPY extras/ /usr/share/kvmd/extras/
COPY web/ /usr/share/kvmd/web/ COPY web/ /usr/share/kvmd/web/
COPY scripts/kvmd-gencert /usr/share/kvmd/ COPY scripts/kvmd-gencert /usr/share/kvmd/

3
scripts/kvmd Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd / && python3 -m kvmd.apps.kvmd "$@"

3
scripts/kvmd-htpasswd Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd / && python3 -m kvmd.apps.htpasswd "$@"

3
scripts/kvmd-otg Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd / && python3 -m kvmd.apps.otg "$@"

3
scripts/kvmd-otgconf Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd / && python3 -m kvmd.apps.otgconf "$@"

3
scripts/kvmd-totp Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd / && python3 -m kvmd.apps.totp "$@"

3
scripts/kvmd-vnc Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd / && python3 -m kvmd.apps.vnc "$@"