jonssonyan 2 anni fa
parent
commit
406f72adff
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      install_script.sh

+ 6 - 6
install_script.sh

@@ -77,10 +77,10 @@ init_var() {
 
   # Update
   trojan_panel_current_version=""
-  trojan_panel_latest_version="2.0.0"
+  trojan_panel_latest_version="1.3.1"
   trojan_panel_core_current_version=""
-  trojan_panel_core_latest_version="2.0.0"
-  tp_sql_130_131="alter table trojan_panel_db.node_hysteria modify up_mbps int(10) default 100 not null comment '单客户端最大上传速度 单位:Mbps';alter table trojan_panel_db.node_hysteria modify down_mbps int(10) default 100 not null comment '单客户端最大下载速度 单位:Mbps';"
+  trojan_panel_core_latest_version="1.3.1"
+  tp_sql_131_132="alter table trojan_panel_db.node_hysteria modify up_mbps int(10) default 100 not null comment '单客户端最大上传速度 单位:Mbps';alter table trojan_panel_db.node_hysteria modify down_mbps int(10) default 100 not null comment '单客户端最大下载速度 单位:Mbps';"
 }
 
 echo_content() {
@@ -812,9 +812,9 @@ install_trojan_panel_core() {
 update__trojan_panel_database() {
   echo_content skyBlue "---> 更新Trojan Panel数据结构"
 
-  if [[ "${trojan_panel_current_version}" == "1.3.0" ]]; then
-    docker exec trojan-panel-mariadb mysql -h"${mariadb_ip}" -P"${mariadb_port}" -u"${mariadb_user}" -p"${mariadb_pas}" -e "${tp_sql_130_131}" &>/dev/null &&
-      trojan_panel_current_version="1.3.1"
+  if [[ "${trojan_panel_current_version}" == "1.3.1" ]]; then
+    docker exec trojan-panel-mariadb mysql -h"${mariadb_ip}" -P"${mariadb_port}" -u"${mariadb_user}" -p"${mariadb_pas}" -e "${tp_sql_131_132}" &>/dev/null &&
+      trojan_panel_current_version="1.3.2"
   fi
 
   echo_content skyBlue "---> Trojan Panel数据结构更新完成"