-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
83 lines (59 loc) · 1.95 KB
/
install.sh
File metadata and controls
83 lines (59 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash
if [ $1 == usb ]; then
sh ./installByUSB.sh
fi
#部署文件目录
export deploy_path=$(dirname "${PWD}")
#小脚本文件夹
export script_path=${PWD}
#装车文件夹
export zc_path="/home/storage/zc"
#项目名称
export project_name=branch
#程序目录
export program_path=$zc_path/$project_name
#自助装车结果图像文件夹
export zizhu_img_path="/home/storage/data/video/img/result"
#清理脚本文件夹
export clearzcfiles_path="/opt/matrix/middleware"
#分发脚本名称
export distribute_script_name="distribute.sh localupdate.sh remoteupdate.sh"
#清理脚本名称
export clear_script_name="clearzcfiles"
#下载的docker日志文件夹
export docker_log_path=$zc_path/docker_log
#微力同步目录
export SYNC_path=$zc_path/SYNC
#配置文件目录
export config_path=/home/storage/config/yaml
#分发脚本文件夹
#export distribute_script_path=$zc_path/distribute_script
#创建文件夹
mkdir -p $zizhu_img_path $clearzcfiles_path $docker_log_path $SYNC_path $config_path/config.yaml_history
echo --------------创建文件夹完成--------------
# mv $distribute_script_name $distribute_script_path
# echo 移动分发脚本完成
#启动U盘部署就将installByUSB=true
bash $script_path/config_lib.sh
bash $script_path/clean_yaml.sh
bash $script_path/config_time.sh
bash $script_path/config_crontab.sh
bash $script_path/run_images.sh
#sh $script_path/run_app.sh
#移除程序编译,使用镜像,程序编译使用代码文件夹内的deploy.sh
# if [ -d "/home/storage/zc/branch/platforms" ]; then
# $script_path/runApp.sh
# fi
bash $script_path/run_alias_general.sh
bash $script_path/run_alias_truck.sh
bash $script_path/run_clearzcfiles.sh
bash $script_path/config_vim.sh
if [[ -z "$1" || ( "$1" != "usb" && "$1" != "USB" ) ]]; then
bash $script_path/clean_trash.sh
#echo "看看我清理文件执行了吗"
fi
sleep 1
date
echo 请手动调整时间和设置ntp服务
echo 主站需配置Ansible和SVN
reboot