Files
tvhelper-docker/dockerinfo/start.sh

34 lines
1.1 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 加载环境变量
if [ -f /etc/environment ]; then
source /etc/environment
fi
# 启动 Apache 服务
echo "$(date) 启动 Apache 服务..."
service apache2 start
# 启动 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"
# 保持容器运行
echo "$(date) 容器正在运行中..."
tail -f /dev/null