This is an automated email from the ASF dual-hosted git repository.

wangdan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 8877aba8b chore(run.sh): link pegasus_shell only doesnt exist (#2053)
8877aba8b is described below

commit 8877aba8bcf9b98d903e912115b960eb92dc5182
Author: Samunroyu <[email protected]>
AuthorDate: Mon Jul 1 11:04:25 2024 +0800

    chore(run.sh): link pegasus_shell only doesnt exist (#2053)
    
    Use run.sh start pegasus shell will create a symbolic link every time. But 
in docker
    production environment. It cant create a symbolic link in the only-read 
filesystem
    of container. So when symbolic link is exist we should not create.
---
 run.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/run.sh b/run.sh
index 7e1b41321..dfe4f7ea9 100755
--- a/run.sh
+++ b/run.sh
@@ -1766,7 +1766,9 @@ function run_shell()
     cd ${ROOT}
     if [ -f ${ROOT}/bin/pegasus_shell/pegasus_shell ]; then
         # The pegasus_shell was packaged by pack_tools, to be used on 
production environment.
-        ln -s -f ${ROOT}/bin/pegasus_shell/pegasus_shell
+        if test ! -f ./pegasus_shell; then
+            ln -s -f ${ROOT}/bin/pegasus_shell/pegasus_shell
+        fi
     elif [ -f ${BUILD_LATEST_DIR}/output/bin/pegasus_shell/pegasus_shell ]; 
then
         # The pegasus_shell was built locally, to be used for test on 
development environment.
         ln -s -f ${BUILD_LATEST_DIR}/output/bin/pegasus_shell/pegasus_shell


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to