From e77cc6a39dd182296072266cf14743b349020212 Mon Sep 17 00:00:00 2001 From: Janek <6506725+jkrgr0@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:17:21 +0000 Subject: [PATCH] fix(2fauth): :ambulance: Fixed wrong version file in update_script --- ct/2fauth.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/2fauth.sh b/ct/2fauth.sh index 68ee2b89..edaf7c64 100644 --- a/ct/2fauth.sh +++ b/ct/2fauth.sh @@ -37,8 +37,8 @@ function update_script() { # Crawling the new version and checking whether an update is required RELEASE=$(curl -s https://api.github.com/repos/Bubka/2FAuth/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then - msg_info "Updating $APP to v${RELEASE}" + if [[ "${RELEASE}" != "$(cat /opt/2fauth_version.txt)" ]] || [[ ! -f /opt/2fauth_version.txt ]]; then + msg_info "Updating $APP to ${RELEASE}" apt-get update &>/dev/null apt-get -y upgrade &>/dev/null