forked from dunwu/java-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sh
More file actions
17 lines (15 loc) · 626 Bytes
/
init.sh
File metadata and controls
17 lines (15 loc) · 626 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
#################################################################################
# javatool-server 项目初始化脚本
# 执行本脚本后,会将 JavaStack 下载到 /home/zp/source/JavaStack 目录下。
# 环境中必须安装了 git
#################################################################################
rm -rf /home/temp
rm -rf /home/zp/source/JavaStack
mkdir -p /home/temp
cd /home/temp
wget https://raw.githubusercontent.com/dunwu/JavaStack/master/scripts/git-clone.sh
chmod 777 git-clone.sh
./git-clone.sh JavaStack master
chmod 777 -R /home/zp/source/JavaStack
rm -rf /home/temp