Jpom/docs/install.sh

23 lines
520 B
Bash
Raw Normal View History

2019-08-20 00:20:38 +08:00
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
LANG=en_US.UTF-8
# 解压命令
if [[ ! -f "/usr/bin/unzip" ]];then
#rm -f /etc/yum.repos.d/epel.repo
yum install unzip -y
fi
2019-08-20 22:40:37 +08:00
TYPE="$1"
2019-08-20 22:37:45 +08:00
# 判断
if [[ -z "${TYPE}" ]] ; then
TYPE="Server";
fi
2019-08-20 00:20:38 +08:00
# 下载
2019-08-21 22:32:21 +08:00
wget -O ${TYPE}.zip https://1232788122276831.cn-beijing.fc.aliyuncs.com/2016-08-15/proxy/jpom/jpom-releases/?type=${TYPE}
2019-08-20 00:20:38 +08:00
# 解压
2019-08-20 22:37:45 +08:00
unzip -o ${TYPE}.zip
# 删除安装包
rm -f ${TYPE}.zip
# 启动
sh ${TYPE}.sh start