Commit 4a76e872 authored by dengyufu's avatar dengyufu

modify quick_install.sh

parent 73e6a6a8
...@@ -4,9 +4,13 @@ cd $SCRIPT_DIR ...@@ -4,9 +4,13 @@ cd $SCRIPT_DIR
DIR=`pwd` DIR=`pwd`
USER_NAME=`whoami` USER_NAME=`whoami`
GROUP=`ls -g ~/.. | grep $USER_NAME | awk '{print $3}'` GROUP=`ls -g ~/.. | grep $USER_NAME | awk '{print $3}'`
sudo mkdir /assets \ if [ -d /assets ]; then
&& sudo chown -R $USER_NAME:$GROUP /assets \ sudo chown -R $USER_NAME:$GROUP /assets
&& cd /assets \ else
&& wget https://gitlab.yit.com/pub/com.yit.trace.yittrace-pinpoint-agent/raw/master/download.sh?inline=false -O download.sh && chmod +x download.sh \ sudo mkdir /assets && sudo chown -R $USER_NAME:$GROUP /assets
fi
cd /assets \
&& wget https://gitlab.yit.com/pub/com.yit.trace.yittrace-pinpoint-agent/raw/master/download.sh?inline=false -O download.sh \
&& chmod +x download.sh \
&& ./download.sh \ && ./download.sh \
&& pinpoint-agent/script/mac_init_env_replay.sh i1 && pinpoint-agent/script/mac_init_env_replay.sh i1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment