Always re-download forgejo, even if installed.
parent
466fe3aee7
commit
5d7a01816b
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue