From 177cd3de810ca113d17fe9bd237eaa73791ff52a Mon Sep 17 00:00:00 2001 From: whyour Date: Sat, 22 Nov 2025 01:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20docker=20=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-entrypoint.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 9996154e..eb2027f2 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -23,11 +23,11 @@ log_with_style() { if [ -f /etc/alpine-release ]; then if ! grep -q "^options ndots:0" /etc/resolv.conf 2>/dev/null; then echo "options ndots:0" >> /etc/resolv.conf - log_with_style "INFO" "🔧 已配置 DNS 解析优化 (ndots:0)" + log_with_style "INFO" "🔧 0. 已配置 DNS 解析优化 (ndots:0)" fi fi -log_with_style "INFO" "🚀 1. 检测配置文件..." +log_with_style "INFO" "🚀 1. 检测配置文件..." load_ql_envs export_ql_envs . $dir_shell/env.sh @@ -41,16 +41,16 @@ log_with_style "INFO" "⚙️ 2. 启动 pm2 服务..." reload_pm2 if [[ $AutoStartBot == true ]]; then - log_with_style "INFO" "🤖 3. 启动 bot..." + log_with_style "INFO" "🤖 3. 启动 bot..." nohup ql bot >$dir_log/bot.log 2>&1 & fi if [[ $EnableExtraShell == true ]]; then - log_with_style "INFO" "🛠️ 4. 执行自定义脚本..." + log_with_style "INFO" "🛠️ 4. 执行自定义脚本..." nohup ql extra >$dir_log/extra.log 2>&1 & fi -log_with_style "SUCCESS" "🎉 容器启动成功!" +log_with_style "SUCCESS" "🎉 容器启动成功!" crond -f >/dev/null