Skip to content

Commit

Permalink
完善升级
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Jul 1, 2020
1 parent ad79c9e commit 34c5f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ trojan多用户管理部署程序
- 集成acme.sh证书申请
- 生成客户端配置文件
- 在线实时查看trojan日志
- 在线trojan和trojan-go随时切换
- 支持trojan://分享链接和二维码分享(二维码仅限web页面)

## 安装方式
Expand Down
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ installTrojan(){
sed -i "s/\"db\"/\"database\"/g" /usr/local/etc/trojan/config.json
systemctl restart trojan
fi
/usr/local/bin/trojan upgrade
/usr/local/bin/trojan upgrade db
if [[ -z `cat /usr/local/etc/trojan/config.json|grep sni` ]];then
/usr/local/bin/trojan upgrade config
fi
systemctl restart trojan-web
colorEcho $GREEN "更新trojan管理程序成功!\n"
fi
Expand Down

0 comments on commit 34c5f37

Please sign in to comment.