linux-tutorial/codes/linux/ops/soft/main.sh

30 lines
925 B
Bash
Raw Normal View History

2019-03-04 20:41:51 +08:00
#!/usr/bin/env bash
cat << EOF
***********************************************************************************
2019-05-07 11:39:42 +08:00
* 欢迎使用 Linux CentOS 软件安装配置脚本
2019-03-04 20:41:51 +08:00
* Author: Zhang Peng
***********************************************************************************
EOF
2019-05-07 11:39:42 +08:00
path=$(cd "$(dirname "$0")"; pwd)
2019-03-04 20:41:51 +08:00
PS3="Please select script type: "
select item in "git" "jdk" "maven"
do
path=$(cd "$(dirname "$0")"; pwd)
case ${item} in
"git") yum install -y git ;;
2019-05-07 11:39:42 +08:00
"jdk") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/jdk8-install.sh | bash ;;
"maven") wget -qO- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/soft/maven-install.sh | bash ;;
"redis") curl -o- https://raw.githubusercontent.com/dunwu/os-tutorial/master/codes/linux/ops/service/redis-install.sh | bash ;;
2019-03-04 20:41:51 +08:00
*)
echo -e "输入项不支持!"
main
;;
esac
break
done