Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeng-git committed Sep 15, 2024
1 parent 65d02aa commit ebcc3ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ ARG TARGETARCH

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV TZ=Asia/Shanghai

RUN cp /tmp/lib/* /lib/*-linux-*/ \
&& pip install --no-cache-dir --root-user-action=ignore --disable-pip-version-check /tmp/wheel/*.whl \
Expand All @@ -99,8 +100,8 @@ RUN if [ ${TARGETARCH} = arm ]; then ARCH=armhf; elif [ ${TARGETARCH} = arm64 ];
&& chmod +x /usr/local/bin/ttyd \
&& adduser kvmd --gecos "" --disabled-password \
&& ln -sf /usr/share/tesseract-ocr/*/tessdata /usr/share/tessdata \
&& mkdir -p /etc/kvmd/override.d /var/lib/kvmd/msd /var/lib/kvmd/pst/data /opt/vc/bin /run/kvmd /tmp/kvmd-nginx \
&& touch /run/kvmd/ustreamer.sock /etc/kvmd/.docker_flag
&& mkdir -p /etc/kvmd_backup/override.d /var/lib/kvmd/msd /var/lib/kvmd/pst/data /opt/vc/bin /run/kvmd /tmp/kvmd-nginx \
&& touch /run/kvmd/ustreamer.sock


COPY testenv/fakes/vcgencmd /usr/bin/
Expand Down
1 change: 1 addition & 0 deletions build/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ echo -e "${GREEN}One-KVM pre-starting...${NC}"
if [ ! -f /etc/kvmd/.init_flag ]; then

cp -r /etc/kvmd_backup/* /etc/kvmd/
touch /etc/kvmd/.docker_flag

#生成 ssl 证书 和 vnc 证书
/usr/share/kvmd/kvmd-gencert --do-the-thing
Expand Down
3 changes: 0 additions & 3 deletions configs/kvmd/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ user=root
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[inet_http_server]
port=127.0.0.1:9001

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock

Expand Down

0 comments on commit ebcc3ff

Please sign in to comment.