From 2f3f56fae26800afff5ba69d9e6a7f4d9dcaf23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=82=9F=E7=A9=BA=E7=9A=84=E6=97=A5=E5=B8=B8=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E4=BB=93=E5=BA=93?= Date: Sat, 28 Mar 2026 19:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20dockerinfo/start.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dockerinfo/start.sh | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/dockerinfo/start.sh b/dockerinfo/start.sh index 8475bf8..f7a5f49 100755 --- a/dockerinfo/start.sh +++ b/dockerinfo/start.sh @@ -1,10 +1,33 @@ #!/bin/bash +# 加载环境变量 +if [ -f /etc/environment ]; then + source /etc/environment +fi -# 启动SSH服务 -/usr/sbin/sshd +# 启动 Apache 服务 +echo "$(date) 启动 Apache 服务..." +service apache2 start -# 启动ADB server +# 启动 SSH 服务 +echo "$(date) 启动 SSH 服务..." +service ssh start + +# 启动 ADB server +echo "$(date) 启动 ADB server..." adb start-server +# 启动 Dufs 静态文件服务器 +echo "$(date) 启动 Dufs 静态文件服务器,目录: /data,端口: 15000 ..." +dufs /data --port 15000 --allow-upload --allow-delete --allow-symlink & +cp /tvhelper/*.wkinfo /data/ + +echo "$(date) 版本: $VERSION" +echo "$(date) Tips小技巧1: 如果你的容器名称叫tvhelper" +echo "$(date) 你还能在电脑终端执行 docker exec -it tvhelper bash" +echo "$(date) 这样可以直接调出菜单" +echo "$(date) Tips小技巧2: 如果你已经位于容器内的命令行 任意目录下 你都可以输入快捷键t 直达菜单" +echo "$(date) 更多使用指南 请参考:https://wkdaily.cpolar.cn/archives/tvhelper" + # 保持容器运行 -tail -f /dev/null \ No newline at end of file +echo "$(date) 容器正在运行中..." +tail -f /dev/null