From 5d7a01816be0489b78082f83433e9574993a1254 Mon Sep 17 00:00:00 2001 From: Vadim Troshchinskiy Date: Mon, 25 Nov 2024 18:34:35 +0100 Subject: [PATCH] Always re-download forgejo, even if installed. --- installer/opengnsys_git_installer.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/installer/opengnsys_git_installer.py b/installer/opengnsys_git_installer.py index 2ff4e47..22cb9d9 100755 --- a/installer/opengnsys_git_installer.py +++ b/installer/opengnsys_git_installer.py @@ -81,6 +81,7 @@ class Oglive: def __init__(self): self.__logger = logging.getLogger("Oglive") + self.binary = "/opt/opengnsys/bin/oglivecli" self.__logger.debug("Inicializando") @@ -615,12 +616,9 @@ class OpengnsysGitInstaller: self.__logger.debug("Stopping opengnsys-forgejo service") subprocess.run(["systemctl", "stop", "opengnsys-forgejo"], check=False) - if not os.path.exists(bin_path): - self.__logger.debug("Downloading from %s into %s", FORGEJO_URL, bin_path) - urllib.request.urlretrieve(FORGEJO_URL, bin_path) - os.chmod(bin_path, 0o755) - - + self.__logger.debug("Downloading from %s into %s", FORGEJO_URL, bin_path) + urllib.request.urlretrieve(FORGEJO_URL, bin_path) + os.chmod(bin_path, 0o755) if os.path.exists(forgejo_db_path): self.__logger.debug("Removing old configuration")