diff --git a/customer/usr/local/bin/entry.sh b/customer/usr/local/bin/entry.sh index 6d16961..18bbc8b 100755 --- a/customer/usr/local/bin/entry.sh +++ b/customer/usr/local/bin/entry.sh @@ -14,7 +14,7 @@ set -euo pipefail LOG_I "** Processing entry.sh **" # 优先处理'-'开始的版本信息、帮助信息显示命令,如果是该类命令,处理后退出容器 -[[ "${1:0:1}" == '-' ]] && print_command_help +[[ "${1:0:1}" == '-' ]] && set -- "${APP_EXEC:-/bin/bash}" "$@" && print_command_help "$@" # 处理 root 用户**且**使用默认启动脚本时的初始化 if [[ "$(id -u)" == '0' ]] && [[ "$1" == "run.sh" ]]; then