diff --git a/README.md b/README.md index 51b309d7..c35f8ffb 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ trojan多用户管理部署程序 - 集成acme.sh证书申请 - 生成客户端配置文件 - 在线实时查看trojan日志 +- 在线trojan和trojan-go随时切换 - 支持trojan://分享链接和二维码分享(二维码仅限web页面) ## 安装方式 diff --git a/install.sh b/install.sh index d828c2b1..876c7ea1 100644 --- a/install.sh +++ b/install.sh @@ -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