#!/bin/bash

cd /home/kpl-cors
rm -rf up-alg-bamboo.sh
rm -rf up-alg-vrs.sh
wget http://119.96.169.117:3000/kpl-release/release/up-alg-bamboo.sh && chmod +x up-alg-bamboo.sh
wget http://119.96.169.117:3000/kpl-release/release/up-alg-vrs.sh && chmod +x up-alg-vrs.sh
if [ ! -f "alg-runner.sh" ]; then
  wget http://119.96.169.117:3000/kpl-release/release/alg-runner.sh && chmod +x alg-runner.sh
fi

cd /home/lib
# 下载安装包
rm -rf bboScripts.tar.gz
wget http://119.96.169.117:3000/kpl-release/release/vrs/bboScripts.tar.gz && tar -xvf ./bboScripts.tar.gz  -C ./
# 安装
cd bboScripts && ./install.sh