peilinqian commented on issue #22173:
URL:
https://github.com/apache/shardingsphere/issues/22173#issuecomment-1321528166
```
#!/usr/bin/env bash
parent_dir=$(pwd)
echo $parent_dir
cd $parent_dir
sharding_target_home=$parent_dir
tar_names=`ls |grep .tar.gz|grep apache-shardingsphere`
tar_name=${tar_names[0]}
tar_dir=${tar_name%.*.*}
abs_tar_dir=$parent_dir/$tar_dir
if [ -d "$abs_tar_dir" ] ; then
echo "stop sharding first"
echo $abs_tar_dir
$parent_dir/ss_home/bin/stop.sh
else
echo "sharding not running"
fi
rm -rf $tar_dir
tar zxf ./$tar_name
rm -rf ss-conf
mkdir ss-conf
cd $abs_tar_dir
cp -r conf/* ../ss-conf
rm -rf conf
ln -sf $parent_dir/ss-conf conf
cd $parent_dir
rm -rf ss_home
ln -sf $abs_tar_dir ss_home
bash ss_home/bin/start.sh --version
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]