From 2f89803cd3340f7d6a1860a9f21711fa3c0c3ae4 Mon Sep 17 00:00:00 2001 From: hiddify-com Date: Thu, 7 Mar 2024 16:38:43 +0330 Subject: [PATCH] fix: release can not be installed --- common/hiddify_installer.sh | 4 ++-- update.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/hiddify_installer.sh b/common/hiddify_installer.sh index da162befd..e87abc1af 100755 --- a/common/hiddify_installer.sh +++ b/common/hiddify_installer.sh @@ -101,8 +101,8 @@ function update_panel() { fi ;; release) - error "you can not install release version 8 using this script" - exit 1 + # error "you can not install release version 8 using this script" + # exit 1 latest=$(get_release_version hiddify-panel) echo "hiddify panel version current=$current_panel_version latest=$latest" if [[ $force == "true" || "$current_panel_version" != "$latest" ]]; then diff --git a/update.sh b/update.sh index d7749ab9c..a0ff641c7 100755 --- a/update.sh +++ b/update.sh @@ -33,10 +33,10 @@ function main() { local current_config_version=$(get_installed_config_version) local current_panel_version=$(get_installed_panel_version) - if [[ $package_mode == "release" ]] && [[ $current_config_version == *"dev"* || ! $current_panel_version == 10* || ! $current_panel_version == 9* ]]; then - bash common/downgrade.sh - return 0 - fi + # if [[ $package_mode == "release" ]] && [[ $current_config_version == *"dev"* || ! $current_panel_version == 10* || ! $current_panel_version == 9* ]]; then + # bash common/downgrade.sh + # return 0 + # fi rm -rf sniproxy caddy update_progress "Hiddify Updater" "Creating a backup" 5