浏览代码

fix: v2.1.8 bug

jonssonyan 2 年之前
父节点
当前提交
497e8d12b3
共有 4 个文件被更改,包括 8 次插入8 次删除
  1. 2 2
      archive/install_script_v2.1.5.sh
  2. 2 2
      archive/install_script_v2.1.6.sh
  3. 2 2
      archive/install_script_v2.1.7.sh
  4. 2 2
      install_script.sh

+ 2 - 2
archive/install_script_v2.1.5.sh

@@ -1382,8 +1382,6 @@ update_trojan_panel() {
   if [[ "${trojan_panel_current_version}" != "${trojan_panel_latest_version}" ]]; then
     echo_content green "---> 更新Trojan Panel后端"
 
-    update__trojan_panel_database
-
     mariadb_ip=$(get_ini_value ${trojan_panel_config_path} mysql.host)
     mariadb_port=$(get_ini_value ${trojan_panel_config_path} mysql.port)
     mariadb_user=$(get_ini_value ${trojan_panel_config_path} mysql.user)
@@ -1393,6 +1391,8 @@ update_trojan_panel() {
     redis_pass=$(get_ini_value ${trojan_panel_config_path} redis.password)
     trojan_panel_port=$(get_ini_value ${trojan_panel_config_path} server.port)
 
+    update__trojan_panel_database
+
     docker exec trojan-panel-redis redis-cli -h "${redis_host}" -p "${redis_port}" -a "${redis_pass}" -e "flushall" &>/dev/null
 
     docker rm -f trojan-panel &&

+ 2 - 2
archive/install_script_v2.1.6.sh

@@ -1381,8 +1381,6 @@ update_trojan_panel() {
   if [[ "${trojan_panel_current_version}" != "${trojan_panel_latest_version}" ]]; then
     echo_content green "---> 更新Trojan Panel后端"
 
-    update__trojan_panel_database
-
     mariadb_ip=$(get_ini_value ${trojan_panel_config_path} mysql.host)
     mariadb_port=$(get_ini_value ${trojan_panel_config_path} mysql.port)
     mariadb_user=$(get_ini_value ${trojan_panel_config_path} mysql.user)
@@ -1392,6 +1390,8 @@ update_trojan_panel() {
     redis_pass=$(get_ini_value ${trojan_panel_config_path} redis.password)
     trojan_panel_port=$(get_ini_value ${trojan_panel_config_path} server.port)
 
+    update__trojan_panel_database
+
     docker exec trojan-panel-redis redis-cli -h "${redis_host}" -p "${redis_port}" -a "${redis_pass}" -e "flushall" &>/dev/null
 
     docker rm -f trojan-panel &&

+ 2 - 2
archive/install_script_v2.1.7.sh

@@ -1381,8 +1381,6 @@ update_trojan_panel() {
   if [[ "${trojan_panel_current_version}" != "${trojan_panel_latest_version}" ]]; then
     echo_content green "---> 更新Trojan Panel后端"
 
-    update__trojan_panel_database
-
     mariadb_ip=$(get_ini_value ${trojan_panel_config_path} mysql.host)
     mariadb_port=$(get_ini_value ${trojan_panel_config_path} mysql.port)
     mariadb_user=$(get_ini_value ${trojan_panel_config_path} mysql.user)
@@ -1392,6 +1390,8 @@ update_trojan_panel() {
     redis_pass=$(get_ini_value ${trojan_panel_config_path} redis.password)
     trojan_panel_port=$(get_ini_value ${trojan_panel_config_path} server.port)
 
+    update__trojan_panel_database
+
     docker exec trojan-panel-redis redis-cli -h "${redis_host}" -p "${redis_port}" -a "${redis_pass}" -e "flushall" &>/dev/null
 
     docker rm -f trojan-panel &&

+ 2 - 2
install_script.sh

@@ -1387,8 +1387,6 @@ update_trojan_panel() {
   if [[ "${trojan_panel_current_version}" != "${trojan_panel_latest_version}" ]]; then
     echo_content green "---> 更新Trojan Panel后端"
 
-    update__trojan_panel_database
-
     mariadb_ip=$(get_ini_value ${trojan_panel_config_path} mysql.host)
     mariadb_port=$(get_ini_value ${trojan_panel_config_path} mysql.port)
     mariadb_user=$(get_ini_value ${trojan_panel_config_path} mysql.user)
@@ -1398,6 +1396,8 @@ update_trojan_panel() {
     redis_pass=$(get_ini_value ${trojan_panel_config_path} redis.password)
     trojan_panel_port=$(get_ini_value ${trojan_panel_config_path} server.port)
 
+    update__trojan_panel_database
+
     docker exec trojan-panel-redis redis-cli -h "${redis_host}" -p "${redis_port}" -a "${redis_pass}" -e "flushall" &>/dev/null
 
     docker rm -f trojan-panel &&