Skip to content

Commit

Permalink
fix: 解决mv过程中可能出现文件层级加载不全的问题 (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshan authored Feb 1, 2024
1 parent eedd98c commit 79df3c5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions polaris-agent-build/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ mkdir -p ${java_agent_dir}

# 将 /app/lib 下的文件 copy 一份出去

mv -f /app/${polaris_agent_dir_name} ${java_agent_dir}
mv -f /app/version.txt ${java_agent_dir}
#mv -f /app/${polaris_agent_dir_name} ${java_agent_dir}
#mv -f /app/version.txt ${java_agent_dir}
ln -s /app/${polaris_agent_dir_name} ${java_agent_dir}/${polaris_agent_dir_name}
ln -s /app/version.txt ${java_agent_dir}/version.txt


# 这里需要将 agent 起到需要的相关信息全部注入到对应 plugin 中
cd ${java_agent_dir}
Expand Down

0 comments on commit 79df3c5

Please sign in to comment.