From d44749fbebc3c2f39873b93538f190319640c0d4 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Thu, 24 Jul 2025 17:13:45 +0300 Subject: [PATCH] added update meter --- data_from_portwine/scripts/functions_helper | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index fd3e4e45..5f15023e 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -2697,8 +2697,6 @@ pw_port_update () { return 0 fi - tmp_next_ver=$(grep "SCRIPTS_NEXT_VERSION" "${PORT_WINE_TMP_PATH}/curent_var_ver" | awk -F "=" '{print $2}') - tmp_stab_ver=$(grep "SCRIPTS_STABLE_VERSION" "${PORT_WINE_TMP_PATH}/curent_var_ver" | awk -F "=" '{print $2}') scripts_current_ver=$(grep "$BRANCH_VERSION_UPDATE" "${PORT_WINE_TMP_PATH}/curent_var_ver" | awk -F "=" '{print $2}') if [[ ! -f "${PORT_WINE_TMP_PATH}/update_remind_later" ]] ; then echo "$scripts_current_ver" > "${PORT_WINE_TMP_PATH}/update_remind_later" @@ -2770,7 +2768,7 @@ pw_port_update () { try_remove_dir "${PORT_WINE_TMP_PATH}/$PW_NAME_ARCHIVE/" echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver" unset SKIP_CHECK_UPDATES - [[ "$tmp_next_ver" == "$tmp_stab_ver" ]] && echo "Stable update." + curl -X GET "http://cloud.linux-gaming.ru:8081/api/download/${scripts_current_ver}" &>/dev/null echo "Restarting PP after update..." restart_pp fi