Skip to content

Commit

Permalink
修复启动脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Jul 30, 2024
1 parent db14470 commit 92b005c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
set -eu

generate() {
# 输入文件名
Expand All @@ -22,8 +21,7 @@ generate() {
fi
}

CONFIG_SOURCE_V=$(env | grep "CONFIG_SOURCE")
if [ -z "$CONFIG_SOURCE_V" ]; then
if [ -z "$CONFIG_SOURCE" ]; then
echo "环境变量 CONFIG_SOURCE 不存在, 使用默认配置文件"
else
generate "${CONFIG_SOURCE}" "/app/appsettings.json"
Expand Down

0 comments on commit 92b005c

Please sign in to comment.