diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 2610e2a7..d9887808 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -30,9 +30,9 @@ if [ ! -s ${QL_DIR}/config/config.sh ]; then echo fi -if [ ! -s ${QL_DIR}/config/auth.json ]; then +if [ ! -s ${QL_DIR}/config/auth.sample.json ]; then echo -e "检测到config配置目录下不存在auth.json,从示例文件复制一份用于初始化...\n" - cp -fv ${QL_DIR}/sample/auth.json ${QL_DIR}/config/auth.json + cp -fv ${QL_DIR}/sample/auth.sample.json ${QL_DIR}/config/auth.json echo fi diff --git a/sample/auth.json b/sample/auth.sample.json similarity index 100% rename from sample/auth.json rename to sample/auth.sample.json diff --git a/shell/share.sh b/shell/share.sh index ad704031..820f4d34 100644 --- a/shell/share.sh +++ b/shell/share.sh @@ -1,4 +1,5 @@ ## 目录 +dir_sample=$dir_root/sample dir_config=$dir_root/config dir_scripts=$dir_root/scripts dir_raw=$dir_scripts/raw