Skip to content

Commit

Permalink
Remove unnecessary code in run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
work7z committed Mar 9, 2024
1 parent 6f81c66 commit acdc906
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pipeline/server/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ if [ -z $crtVersion ]; then
fi

cd ~/LafTools-dist
ctn=$(ls | wc -l)
if [ $ctn -gt 5 ]; then
ls -rt | grep dkout | head -n 1 | xargs -I {} rm {}
fi
# ctn=$(ls | wc -l)
# if [ $ctn -gt 5 ]; then
# ls -rt | grep dkout | head -n 1 | xargs -I {} rm {}
# fi

version=$1
runtimeDir=/home/$(whoami)/runtime
Expand Down Expand Up @@ -46,6 +46,6 @@ mv $targetPkg m.tmp.gz
gunzip ./m.tmp.gz
docker load -i ./m.tmp
docker stop laft-inst2
docker rm laft-inst2
docker ps -a | grep laft-inst2 | awk '{print $1}' | xargs -I {} docker rm {}
docker run --name laft-inst2 -d -p 0.0.0.0:80:39899 codegentoolbox/laftools-linux-x64:$crtVersion
docker logs -f laft-inst2

0 comments on commit acdc906

Please sign in to comment.