fix(脚本): 修改在线更新后无法更新新版本的bug

pull/534/merge
mack-a 2021-03-01 14:52:58 +08:00
parent 6405d17b5f
commit 4ad3cf0c21
3 changed files with 5 additions and 94 deletions

View File

@ -1,58 +0,0 @@
# 启动脚本
```
vasma
```
# 服务管理
## Xray-core、v2ray-core、trojan-go
- 重启
```
# xray
systemctl restart xray
# v2ray
systemctl restart v2ray
# trojan-go
systemctl restart trojan-go
```
- 启动
````
# xray
systemctl start xray
# v2ray
systemctl start v2ray
# trojan-go
systemctl start trojan-go
````
- 关闭
```
# xray
systemctl stop xray
# v2ray
systemctl stop v2ray
# trojan-go
systemctl stop trojan-go
```
## nginx
- 重启
```
nginx -s reload
```
- 启动
````
nginx
````
- 关闭
```
nginx -s stop
```

View File

@ -1,35 +0,0 @@
# 脚本常见错误处理
## 1.输入域名后卡住
```
# 请手动打开icmp
```
## 2.下载脚本失败
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/install/shell_error_01.jpg" width=700>
- 需要手动更改dns
```
# 文件位置
/etc/resolv.conf
# 文件内容
nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 8.8.4.4
```
## 3.生成证书失败
- 请更换Debian或者Ubuntu
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/install/shell_error_02.jpg" width=700>
## 4.Debian8启动nginx失败
### 解决方法一
- 手动删除add_header选项
```
vim /etc/nginx/conf.d/alone.conf
# 删除下方代码
location / {
add_header Strict-Transport-Security "max-age=63072000" always;
}
```

View File

@ -2559,6 +2559,7 @@ removeUser() {
# 更新脚本
updateV2RayAgent() {
echoContent skyBlue "\n进度 $1/${totalProgress} : 更新v2ray-agent脚本"
rm -rf /etc/v2ray-agent/install.sh
if wget --help | grep -q show-progress; then
wget -c -q --show-progress -P /etc/v2ray-agent/ -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh"
else
@ -2571,6 +2572,9 @@ updateV2RayAgent() {
echoContent green "\n ---> 更新完毕"
echoContent yellow " ---> 请手动执行[vasma]打开脚本"
echoContent green " ---> 当前版本:${version}\n"
echoContent yellow "如更新不成功,请手动执行下面命令\n"
echoContent skyBlue "wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh"
echo
exit 0
}
@ -3245,7 +3249,7 @@ menu() {
cd "$HOME" || exit
echoContent red "\n=============================================================="
echoContent green "作者mack-a"
echoContent green "当前版本v2.3.21"
echoContent green "当前版本v2.3.22"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:七合一共存脚本"
echoContent red "=============================================================="