Skip to content

Commit

Permalink
fix bug 优化日志输出
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Oct 5, 2022
1 parent e550cd4 commit a3fa114
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ENV LANG=C.UTF-8
# 程序默认变量,不能修改
ENV BGMI_PATH="/bgmi/conf/bgmi" \
BGMI_HOME="/home/bgmi-docker" \
DOWNLOAD_DIR=/media/downloads \
RCLONE_CONFIG=/bgmi/conf/rclone/rclone.conf

# BGmi 设置
Expand All @@ -28,7 +27,8 @@ ENV UPDATE_TRACKERS=true \
RPC_SECRET=password \
DISK_CACHE= \
IPV6_MODE= \
SPECIAL_MODE=
SPECIAL_MODE= \
DOWNLOAD_DIR=/media/downloads

# 权限设置
ENV PUID=1000 \
Expand Down
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function config_bgmi {
bgmi install
bgmi source $data_source
bgmi config ADMIN_TOKEN $admin_token
bgmi config SAVE_PATH $DOWNLOAD_DIR
bash /home/bgmi-docker/BGmi/bgmi/others/crontab.sh
else
bgmi upgrade
bash /home/bgmi-docker/BGmi/bgmi/others/crontab.sh
Expand Down Expand Up @@ -106,6 +106,10 @@ function config_bgmi_hardlink_helper {
cp /home/bgmi-docker/bgmi_hardlink_helper/config.py $bgmi_hardlink_helper_config
fi

echo "[+] bgmi_hardlink_helper install successfully"

echo "[+] crontab bgmi_hardlink_helper added"

(crontab -l ; echo "30 */2 * * * su bgmi -c 'python3 /bgmi/bgmi_hardlink_helper/bgmi_hardlink_helper.py run'") | crontab -

}
Expand Down

0 comments on commit a3fa114

Please sign in to comment.