From 52bf4cb83530c55c28632c6e007bca3444480b73 Mon Sep 17 00:00:00 2001 From: Ian Walton Date: Tue, 3 Sep 2019 14:26:58 -0400 Subject: [PATCH] fix: Make downloaded binary executable. Current gitea releases do not ship with the binary in the archive executable. This results in the service failing to start after updating. This commit ensures the binary is always executable. --- gitea_auto_update/lib/download.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitea_auto_update/lib/download.py b/gitea_auto_update/lib/download.py index f178ad7..5f51f0d 100644 --- a/gitea_auto_update/lib/download.py +++ b/gitea_auto_update/lib/download.py @@ -67,6 +67,8 @@ class Download: # moving temp file to gtfile location cmd = 'mv ' + self.tmpDir + 'gitea-' + self.githubVersion + '-' + self.gtSystem + ' ' + self.gtFile os.system(cmd) + cmd = 'chmod +x ' + self.gtFile + os.system(cmd) def checkAndExtract(self): os.chdir(self.tmpDir)