Skip to content

Commit f802dd3

Browse files
authored
Merge pull request #468 from LiaoSirui/master
fix(#467): 修复部分配置无法通过环境变量覆盖
2 parents 05ccf98 + 87950f1 commit f802dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if env | grep -q '^PA_.\+=.\+'; then
1212
echo "\"PA_${VAR_NAME}\" in Environment variable contains '-',this will be ignored."
1313
continue
1414
fi
15-
CONF_ITEM=$(grep -Eio "${VAR_NAME/_/-}|${VAR_NAME}" /app/conf/app.conf)
15+
CONF_ITEM=$(grep -Eio "${VAR_NAME/_/-}|${VAR_NAME}" /app/conf/app.conf|tail -n 1)
1616
if [[ -z ${CONF_ITEM} ]]; then
1717
echo "\"PA_${VAR_NAME}\" in Environment variable not found from config file"
1818
continue

0 commit comments

Comments
 (0)